Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <omp.h>
void main(int argv, char** argc) {
int i;
int sum = 0;
int a[100];
int b[100];
for(i=0; i<100; i++) {
function sudo!!
eval sudo $history[1]
end
function ll
ls -FGlAhp
end
function c
clear
alias gffs = 'git flow feature start $@'
alias gfff = 'git flow feature finish $@'
alias glos = 'git pull origin staging'
alias glod = 'git pull origin develop'
alias gpod = 'git push origin develop'
alias gpos = 'git push origin staging'
alias glog = 'git log --oneline --all --graph --decorate $@'
alias gc = 'git commit $@'
alias ga = 'git add $@'
alias gcmsg = 'git commit -m $@'
mpicc test.c -o test
mpirun -np 4 ./test

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

Install mcrypt php extension on mac

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

Ta-da!

function gffs
git flow feature start $argv
end
function gfff
git flow feature finish $argv
end
function glos
git pull origin staging
/alertsoff
/alertson
/me message
https://support.skype.com/en/faq/fa10042/what-are-chat-commands-and-roles
- 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\//);`