Skip to content

Instantly share code, notes, and snippets.

View selfup's full-sized avatar
💻
doing the most

Regis Boudinot selfup

💻
doing the most
View GitHub Profile
#!/usr/bin/env bash
PS_AQ=$(docker ps -aq)
IMAGES_Q=$(docker images -q)
if [ !$PS_AQ ] || [ !$IMAGES_Q ]
then
echo 'NOTHING TO STOP OR DELETE'
else
echo ' STOPPING ALL CONTAINERS' \
sudo apt-get remove steam-launcher \
&& sudo apt-get purge steam-launcher
&& rm -rf ~/.steam \
&& echo 'JOBS DONE!'
{:ok, ifs} = :inet.getif()
ips =
Enum.map(ifs, fn {ip, _b, _m} ->
Enum.join(Tuple.to_list(ip), ".")
end)
IO.inspect ips
Showing nodes accounting for 29.42s, 85.85% of 34.27s total
Dropped 389 nodes (cum <= 0.17s)
Showing top 10 nodes out of 125
flat flat% sum% cum cum%
22.63s 66.03% 66.03% 22.68s 66.18% syscall.Syscall
1.68s 4.90% 70.94% 1.68s 4.90% runtime.mach_semaphore_signal
1.12s 3.27% 74.20% 1.12s 3.27% runtime.kevent
1.08s 3.15% 77.36% 1.08s 3.15% runtime.freedefer
0.84s 2.45% 79.81% 0.84s 2.45% runtime.usleep
0.81s 2.36% 82.17% 0.81s 2.36% runtime.mach_semaphore_wait

Region

Daggerfall

Add Ons

  • advanced ui
  • craft store
  • destinations
  • lorebooks

1953282128707757731632014947596256332443542996591873396953405194571625257887015694766641987634150146128879524335220236084625510912019560233744015438115196636156919962125642894303370113827800638002767411527927466669865578379318822832061271497583230334854893489572599230722912901928209264331627521730861460017912582042699659936020959339202005184862028402447343139811367418720203868480175318538621112878108240617741383293554561687606454065125954718029126547942894036981659206361019359291352135410376799082940320155702716115395031975973247782162957631629653356694777663285062345245593460647575025935813443457816767646258788590113727299073729478511448089572456191503507025589529116868550008802013233458747217794781447546792016090170642585629359747546532757575740077432034913428785189795354304734560307765078938767286539166799232817449361991523768149557632085371047859706188438731530582395627560879063107819004975169594709736713891745704555202135123350794403360712030504144685221041565037321067932275625864751191461141736034968121

SafeRpc

The idea behind this is that :rpc is not encrypted.

Setting up TLS just for :rpc is yucky. So maybe there is a safer way than just plain HTTP but not as safe as TLS?

This will not encrypt your cookie, but it will encrypt the arguments!

How to use

parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "

How does HAv2 change things?

Here will be a top to bottom question and answer for HAv2!

A simple counter app

How does a simple counter app look in V2?

app({
@selfup
selfup / open.go
Last active September 3, 2018 15:56
switch runtime.GOOS {
case "darwin":
exec.Command("open", "http://localhost:8792").Run()
break
case "windows":
exec.Command("cmd.exe", "/C", "start "+"http://localhost:8792").Run()
break
default:
cmd := exec.Command("xdg-open", "http://localhost:8792")