I hereby claim:
- I am marcelkornblum on github.
- I am marcelkornblum (https://keybase.io/marcelkornblum) on keybase.
- I have a public key whose fingerprint is CD16 1BA8 6339 9AE3 3A94 311F 82D9 F4FC 3376 8263
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
| <title>iFrame Child</title> | |
| <script type="text/javascript" src="iframe-messenger.js"></script> | |
| </head> | |
| <body> |
| #!/bin/bash | |
| # Syncs the WSL clock with the machine clock - they get out of sync after suspension | |
| sudo hwclock -s |
| # heavily inspired by https://gist.github.com/rbellamy/3c5033ba605a090824e8 | |
| # gets everything from bitbucket and brings it across to GH, adding LFS where necessary for file size | |
| # then archives everything brought over | |
| # | |
| # runs on Python 3; does clone --mirror and push --mirror, cleaning up after itself | |
| # | |
| # you need git-lfs installed on the local system | |
| # also make sure you've got git credential caching set up https://help.github.com/articles/caching-your-github-password-in-git/ | |
| import json |
| """ | |
| This is strongly based on https://gist.github.com/unbracketed/3380407; | |
| thanks to @unbracketed and the various commenters on the page. | |
| I've mainly cleaned up the code into basic methods, and included the | |
| various suggestions in the comments. Hope this is useful to someone. | |
| Make sure you have `requests` and `csv` installed via pip then run it: | |
| `python export_gh_issues_to_csv.py` |
| function getDateFromString( input ) { | |
| var d = new Date(); | |
| var this_year = d.getUTCFullYear(); | |
| var date_obj = new Date(input); // try just the default | |
| if ( _.isDate(date_obj) && _.isFinite(date_obj.getTime()) && date_obj.getUTCFullYear() >= this_year ) { // well that was easy | |
| return date_obj; | |
| } | |
| input_int = _.parseInt(input); |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
| cut -f 1 -d ' ' | \ | |
| sed -e s/,.*//g | \ | |
| grep -v ^# | \ | |
| uniq | \ | |
| grep -v "\[" ; |
| #!/usr/bin/env bash | |
| # Delete .pyc files and empty directories from root of project | |
| cd ./$(git rev-parse --show-cdup) | |
| # Clean-up | |
| find . -name ".DS_Store" -delete | |
| NUM_PYC_FILES=$( find . -name "*.pyc" | wc -l | tr -d ' ' ) | |
| if [ $NUM_PYC_FILES -gt 0 ]; then |
| angular.module('myApp', ['class']); |