@rhapsodhy
Startupok Rust + Security
I hereby claim:
To claim this, I am signing this object:
| FROM ubuntu:16.04 | |
| RUN apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get -y install curl build-essential cmake libssl-dev xutils-dev musl-tools && \ | |
| ln -s /usr/bin/g++ /usr/bin/musl-g++ && \ | |
| useradd build && \ | |
| mkdir -p /home/build && \ | |
| chown -R build:build /home/build |
| acbuild begin | |
| acbuildEnd() { | |
| export EXIT=$? | |
| acbuild --debug end && exit $EXIT | |
| } | |
| trap acbuildEnd EXIT | |
| echo $(dd if=/dev/urandom bs=1b count=512 |sha256sum |head -c32) >rkt-machine-id | |
| acbuild set-name random.com/alpine-tmux |
| #!/usr/bin/env python3 | |
| import i3ipc | |
| from sh import pkill | |
| WNAME='browser' | |
| PNAME='firefox' | |
| def on_workspace(i3, e): | |
| if e.current.props.name == WNAME: |
| # append to /etc/sudoers | |
| # | |
| yaourt ALL=(root) NOPASSWD: /usr/bin/pacman, /usr/bin/pacdiffviewer |
| do: | |
| pandoc -f markdown -t latex plan.md > sections.tex | |
| pdflatex plan.tex | |
| pdflatex plan.tex | |
| live: | |
| while inotifywait plan.md; do \ | |
| make do; \ | |
| done |
| #!/bin/ksh | |
| # | |
| # compile tarsnap, and install it to $BASEDIR | |
| # | |
| # put the files/dirs to be included into $BASEDIR/includes | |
| # specify exclude patterns in $BASEDIR/excludes | |
| # both files should contain either space or newline-separated items | |
| # | |
| # tweak $DELETE_ARCH to specify the retention time after which the | |
| # archives will be deleted |
| warming up | |
| estimating clock resolution... | |
| mean is 1.363583 us (640001 iterations) | |
| found 3371 outliers among 639999 samples (0.5%) | |
| 2926 (0.5%) high severe | |
| estimating cost of a clock call... | |
| mean is 38.34752 ns (12 iterations) | |
| found 1 outliers among 12 samples (8.3%) | |
| 1 (8.3%) low severe |
| #!/bin/sh | |
| # ~/bin/e | |
| emacsclient --alternate-editor="emacs" -n "$@" 2>/dev/null & disown | |
| # 4 is the number of the virtual desktop where emacs resides | |
| # the wm should spawn a new instance there automagically | |
| wmctrl -s 4 |