docker ps | awk 'NR>1 {print $1}' | xargs docker stop
Brute force; list all and try to stop everything
docker ps -aq | xargs docker stop
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Coding Challenge</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> |
# just try ASM.example on IEx | |
# assembly-ish code parses alright | |
defmodule ASM do | |
def example() do | |
quote do | |
section data | |
msg db "hello, world" | |
len equ - msg |
gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib |
class Rx: | |
"has the nums of a treatment, its name and rank" | |
def __init__(i,lst): | |
i.rx, i.lst = lst[0], lst[1:] | |
i.mean = sum(i.lst)/len(i.lst) | |
i.rank = 0 | |
def __repr__(i): | |
return 'rank #%s %s at %s'%(i.rank,i.rx,i.mean) | |
def a12s(lst,rev=True,enough=0.66): |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
"abaixo", "aca", "acaso", | |
"acerca", "acima", "acola", "acula", "ademais", "adentro", | |
"adiante", "afinal", "afora", "agora", "agorinha", "ah", "ainda", | |
"alem", "algo", "alguem", "algum", "alguma", "algumas", "alguns", | |
"ali", "alias", "alo", "ambos", "amiude", "ante", "antes", "ao", | |
"aonde", "aos", "apenas", "apesar", "apos", "apud", "aquela", | |
"aquelas", "aquele", "aqueles", "aqui", "aquilo", "as", "assim", | |
"ate", "atras", "atraves", "basicamente", "bastante", "bastantes", | |
"bem", "bis", "bom", "ca", "cada", "cade", "caso", "certa", | |
"certamente", "certas", "certeiramente", "certo", "certos", "chez", |
#!/bin/bash | |
# Font: http://scott.sherrillmix.com/blog/programmer/syntax-highlighting-in-terminal/ | |
if [ ! -t 0 ]; then | |
file=/dev/stdin | |
elif [ -f $1 ]; then | |
file=$1 | |
else | |
echo "Usage: $0 code.c" | |
echo "or e.g. head code.c|$0" | |
exit 1 |