Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
def joystickLoop(eventFile): | |
FORMAT = 'llHHI' | |
EVENT_SIZE = struct.calcsize(FORMAT) | |
with open(eventFile, 'rb') as infile: | |
while True: | |
event = infile.read(EVENT_SIZE) | |
_, _, t, c, v = struct.unpack(FORMAT, event) | |
print(t, c, v) | |
if t == 3 and v == 4294967295: | |
if c == 17: |
# Must run from the root of a Laravel app | |
alias clearlog="truncate -s 0 $PWD/storage/logs/laravel.log" | |
alias clearlogs="truncate -s 0 $PWD/storage/logs/*.log" | |
# Or using git rev-parse | |
alias clearlog="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/laravel.log" | |
alias clearlogs="truncate -s 0 $(git rev-parse --show-toplevel)/storage/logs/*.log" |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
tmux new
- Create and attach to a new session.tmux new -s NAME_HERE
- Create and attach to a new session named NAME_HERE.CTRL-b, d
- Detach (i.e. exit) from the currently-opened tmux session (alternatively, tmux detach
). Note, this means press and hold CTRL
, press b
, release both, press d
.tmux ls
- Show list of tmux sessions.tmux a
- Attach to the previously-opened tmux session.tmux a -t NAME_HERE
- Attach to the tmux session named NAME_HERE.CTRL-d
- Delete (i.e. kill) currently-opened tmux session (alternatively tmux kill-session
).CTRL-b, [
- Enter copy mode, and enable scrolling in currently-opened tmux session. Press q
to exit.CTRL-b, "
- Split window horizontally (i.e. split and add a pane below).$ uname -r
Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io
and 📦markdown-preview-plus
to write math stuff. 📦keyboard-localization
is necessary when using an international layout (like [swiss] german).
Further Reference and source: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |