Shows how many commits ahead and behind git remotes are.
How to run:
bash remote_status.sh [remote]
The remote defaults to origin
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "strings" | |
| sssa "github.com/SSSAAS/sssa-golang" |
|
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
| killall gpg-agent && gpg-agent --daemon --use-standard-socket --pinentry-program /usr/local/bin/pinentry |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru
| // ==UserScript== | |
| // @name Bursch Blog Cleaner | |
| // @version 1.0 | |
| // @description This makes Mr.Bursch's blog legible! | |
| // @author Aaron Janse | |
| // @match http://mrbursch.blogspot.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
| [alias] | |
| fetch-pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f" | |
| delete-prs = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" |
| // from http://stackoverflow.com/a/7869457 | |
| // converted to js code | |
| // x and y are the angles in radians | |
| function getDifference(x, y) { | |
| var a = x-y; | |
| a = (function(i, j) {return i-Math.floor(i/j)*j})(a+Math.PI, Math.PI*2); // (a+180) % 360; this ensures the correct sign | |
| a -= Math.PI; | |
| return a; | |
| } |
| # Encrypt STDIN and provide a password(prompt) | |
| echo "message" | openssl enc -aes-256-cbc -a | |
| # Decrypt STDIN and provide a password(prompt) | |
| echo "encrypted" | openssl enc -aes-256-cbc -a -d |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |