:(){ :|: & };:
mkfs.ext4 /dev/sda1
let q = { | |
miles: 40, //mile pointOf earth radius | |
earth: 3963.2, //earth radius | |
lat: -25, | |
long: -49 | |
}; | |
db.collection.find({$geoWithin: {$centerSphere: [[q.lat, q.long], q.miles/q.earth]}}); |
PROMPT='%{$fg_bold[red]%}☠ λ%{$fg_bold[black]%}%p %{$fg[black]%}%~% %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]" |
git remote add origin [email protected]
db.collection.find().limit(1).skip(_rand()*db.collection.count()); |
sudo dscacheutil -flushcache;
sudo killall -HUP mDNSResponder;say flushed
Clear MDNS Cache
sudo discoveryutil mdnsflushcache
if [[ "$OSTYPE" == "linux-gnu" ]]; then | |
printf "\e[97mlinux-gnu ☂\n"; | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
printf "\e[97mdarwin \n"; | |
else | |
echo "☠ WTF? ☠; | |
fi |
//For a specified field | |
db.collectionname.createIndex( | |
{ "field_name": "text" }, | |
{ name: "TextIndex" } | |
) | |
//For All Fields | |
db.collectionname.createIndex( | |
{ "$**": "text" }, | |
{ name: "TextIndex" } |
/* LET: scope vars */ | |
let foo = "bar"; | |
console.log(foo); | |
if(foo.includes("bar")){ | |
let inc = true; | |
} | |
console.log(inc); | |
/*CONST: constants vars */ | |
const PI = 3.14; |