This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\033[32m\]\w \[\033[00m\]\e[31m\$(parse_git_branch)\e[0m \n$ " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function npm_install { | |
if [ -f yarn.lock ]; then | |
yarn install $@ | |
else | |
npm install $@ | |
fi | |
touch ./node_modules/.metadata_never_index | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/script SetCVar("nameplateMaxDistance", 80) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bgp = chrome.extension.getBackgroundPage(); | |
bgp.console.log("calling bg page console log from popup.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.webupd8.org/2015/12/how-to-change-mouse-scroll-wheel-speed.html | |
sudo apt-get install imwheel | |
nano ~/.imwheelrc | |
# in .imwheelrc file, paste | |
".*" | |
None, Up, Button4, 3 | |
None, Down, Button5, 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --all --grep="search text" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require("crypto"); | |
var path = require("path"); | |
var fs = require("fs"); | |
const { PerformanceObserver, performance} = require('perf_hooks'); | |
const passphrase = "mySecret" | |
var encryptStringWithRsaPublicKey = function(toEncrypt, relativeOrAbsolutePathToPublicKey) { | |
var absolutePath = path.resolve(relativeOrAbsolutePathToPublicKey); | |
var publicKey = fs.readFileSync(absolutePath, "utf8"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:html'; | |
void main() { | |
final ButtonElement button = querySelector('button') as ButtonElement; | |
button.onClick | |
.timeout( | |
Duration(seconds: 1), | |
onTimeout: (sink) => sink.addError("You have lost") | |
).listen( |