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
# Based on https://www.atlassian.com/git/tutorials/dotfiles | |
git init --bare $HOME/.dotfiles | |
alias gd='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' | |
gd config --local status.showUntrackedFiles no | |
echo "alias gd='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc |
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
{ | |
"sass": "sass --style=compressed --load-path=node_modules/foundation-sites/scss/ --load-path=node_modules/slick-carousel/slick/ _assets/css/styles.scss _assets/css/styles.css", | |
"uglify": "uglifyjs node_modules/jquery/dist/jquery.js node_modules/dompurify/dist/purify.js node_modules/velocity-animate/velocity.js node_modules/velocity-ui-pack/velocity.ui.js node_modules/slick-carousel/slick/slick.js _assets/js/tinypubsub.js _assets/js/breakpoints.js _assets/js/parallax.js _assets/js/parallaxFG.js _assets/js/inview.js _assets/js/youtubeplayer.js _assets/js/main.js -o _assets/js/bundle.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
// INSTALL THE ADD-ON | |
let data = { | |
noscript: { | |
id: '{73a6fe31-595d-460b-a920-fcc0f8843232}', | |
installURL: 'https://addons.mozilla.org/firefox/downloads/latest/722/addon-722-latest.xpi?src=dp-btn-primary' | |
}, | |
mutetabs: { | |
id: '[email protected]', | |
installURL: 'https://addons.mozilla.org/firefox/downloads/file/394320/mute_all_inactive_tabs-0.1.1.xpi?src=ss', |
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
diff --git a/static/js/common/fxa-login.js b/static/js/common/fxa-login.js | |
index 2f6428b..9ff32c4 100644 | |
--- a/static/js/common/fxa-login.js | |
+++ b/static/js/common/fxa-login.js | |
@@ -32,13 +32,20 @@ function enableFxALogin() { | |
}); | |
} | |
+ // utf-8 handling from https://mzl.la/1LwX2Zx | |
+ function utf8Tob64(str) { |
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
From ad155917679b816451cbfeeec69865ab7506119d Mon Sep 17 00:00:00 2001 | |
From: Daniel Sabelnikov <[email protected]> | |
Date: Sun, 3 May 2015 22:59:14 +0300 | |
Subject: [PATCH] Add "libtermkey" key bindings preset | |
--- | |
plists/PresetKeyMappings.plist | 381 +++++++++++++++++++++++++++++++++++++++++ | |
1 file changed, 381 insertions(+) | |
diff --git a/plists/PresetKeyMappings.plist b/plists/PresetKeyMappings.plist |
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
module.exports = { | |
all: { | |
// specify files in array format with multiple src-dest mapping | |
files: [ | |
// rasterize all SVG files in "img" and its subdirectories to "img/png" | |
{ cwd: 'public/svg/', src: ['**/*.svg'], dest: 'public/img/' } | |
] | |
} | |
}; |
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
bash-4.1# vi /etc/nginx/conf.d/payments-env.conf | |
bash-4.1# ps aux | grep [n]ginx | |
root 1 0.0 0.2 45228 5608 ? Ss 11:31 0:00 nginx: master process nginx -c /etc/nginx/nginx.conf -g daemon off; | |
nginx 5 0.0 0.1 45736 3308 ? S 11:31 0:00 nginx: worker process | |
bash-4.1# kill -HUP 1 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
function MyConstructor(foo, bar){ |
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 MyConstructor(foo, bar){ | |
if (!(this instanceof MyConstructor)){ | |
var obj = Object.create(MyConstructor.prototype); | |
return MyConstructor.apply(obj, arguments); | |
} | |
this.foo = foo; | |
this.bar = bar; | |
return this; | |
} |
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 MyConstructor(){ | |
console.log(this.toString()); | |
} | |
var instance1 = MyConstructor(); | |
var instance2 = new MyConstructor(); |
NewerOlder