Skip to content

Instantly share code, notes, and snippets.

[{
"keys": ["ctrl+shift+s"],
"command": "save_all"
}, {
"keys": ["tab"],
"command": "move",
"args": {
"by": "characters",
"forward": true
},
AllAutocomplete
AngularJS
AutoFileName
BracketHighlighter
EditorConfig
Emmet
Emmet: Css Snippets
Handlebars
HTMLBeautify
JSFormat
- When you clone the project from git, it will complain that it's not a cordova based project, UNLESS you make an empty www/ folder.
- To show images from file:/// you need to add `$compileProvider.imgSrcSanitizationWhitelist(/^\s(https|file|blob|cdvfile):|data:image\//);`
/alertsoff
/alertson
/me message
https://support.skype.com/en/faq/fa10042/what-are-chat-commands-and-roles
@petarjs
petarjs / CLI cool stuff.md
Last active October 21, 2015 00:28
and commands

General Git

git push origin HEAD - push the current branch to branch with the same name on the server
git push -u origin HEAD - the same, just set upstrem tracking
git remote set-url origin git@github.com:username/repo.git - change the remote
git branch --no-merged - Show branches not merged into master

SSH Keys - Don't ask for password (only works from git bash)

eval $(ssh-agent) # starts the ssh agent on win7, win8
ssh-add /c/Users/Vlada/.ssh/id_rsa # add the key for which you want to disable entering password on every push/pull

{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",

Install mcrypt php extension on mac

brew install mcrypt
brew install php56-mcrypt
// or brew install php55-mcrypt

Ta-da!

How to turn on gzip and caching in Apache

Just add this to .htaccess

gzip

  <IfModule mod_deflate.c>
    <FilesMatch "\\.(js|css|html|htm|php|xml)$">
 SetOutputFilter DEFLATE
mpicc test.c -o test
mpirun -np 4 ./test