(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan |
server { | |
listen 127.0.0.1:9000; | |
location / { | |
proxy_pass http://unix:/var/run/docker.sock:/; | |
} | |
} |
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
# Will include all hosts the playbook is run on. | |
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
- name: "Build hosts file" | |
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
when: hostvars[item].ansible_default_ipv4.address is defined | |
with_items: groups['all'] |
#!/usr/bin/python | |
import dbus | |
import dbus.glib | |
import gobject | |
import subprocess | |
def lock(): | |
print "Screen saver turned on" |
#!/usr/bin/env python | |
import argparse | |
import logging | |
import logging.handlers | |
parser = argparse.ArgumentParser(__file__, | |
description="A syslog message generator") | |
parser.add_argument("--address", |
if_dir = os.getenv('HOME') .. '/.imapfilter/' | |
--------------- | |
-- Options -- | |
--------------- | |
-- time in second before deciding the server timeouted | |
options.timeout = 120 | |
-- auto-subscribe to new directories | |
options.subscribe = true |
Exporting password + one-time code data from iCloud Keychain is now officially supported in macOS Monterey and Safari 15 (for Monterey, Big Sur, and Catalina). You can access it in the Password Manager’s “gear” icon (System Preferences > Passwords on Monterey, and Safari > Passwords everywhere else), or via the File > Export > Passwords... menu item). You shouldn't need to hack up your own exporter anymore.
After my dad died, I wanted to be able to have access any of his online accounts going forward. My dad was a Safari user and used iCloud Keychain to sync his credentials across his devices. I don’t want to have to keep an OS X user account around just to access his accounts, so I wanted to export his credentials to a portable file.