minikube start
eval $(minikube docker-env)
docker build -t <image-name>:<version> .
Don't forget the version tagging or else we hit unsafety registry when deploying with kubectl
def subdomains | |
[ | |
#first batch | |
"insideview", | |
"surveydesignsandbox", | |
"di", | |
"dhhooli", | |
"hoolitest", | |
"cultureamp", | |
"airtasker", |
(dispatcher/dispatch ['id1 'id2] [:event :arg :arg]) | |
(dispatcher/dispatch :all [:event :arg]) | |
(dispatcher/dispatch :self [:event :arg]) ;;no server | |
(dispatcher/dispatch :chat/brasil []) | |
(dispatcher/dispatch [dest-id] [:chat/message {:text "Aê!"}]) =server=> orig-id event-v | |
(handler :chat/message (fn [db orig-id v] ;; [:chat/message {:text "Aê"}] = v |
(ns primes) | |
(defn divides? [number divisor] | |
(zero? (mod number divisor))) | |
(divides? 4 2) ;; => true | |
(divides? 8 1) ;; => true | |
(divides? 3 2) ;; => false | |
(divides? 2 4) ;; => false |
Evolution of e-mail | |
=================== | |
1965 - Introduced at MIT | |
1982 - SMTP created | |
1990 - beggining of spam | |
1997 - yahoo mail | |
2006 - facebook | |
2007 - gmail |
#!/bin/bash | |
# Filename: myip.sh | |
# Synopsis: Access whatsmyip.com servers and prints you external IP address | |
# on the screen | |
# Author: Rafael Oliveira <[email protected]> | |
# License: Fell free to use, copy, modify, distribute, etc | |
# Note: Do a favor to the whatsmyip.com guys and do not over use | |
# their network. Try to wait 300 seconds to use this program a second |
RASTREIO="<CODIGO DE RASTREIO AQUI>" | |
ENDERECO="http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=${RASTREIO}" | |
MUSICA="<MUSICA PARA TOCAR AQUI>" | |
wget $ENDERECO -O a | |
while true; do | |
wget $ENDERECO -O b | |
diff a b -q | |
if [ $? -ne 0 ] ; then | |
mplayer "$MUSICA" |