start new:
tmux
start new with session name:
tmux new -s myname
| # http://mail.python.org/pipermail/pythonmac-sig/2009-September/021649.html | |
| # On Mac OSX Python may run in 32 or 64 bit mode so platform.architecture() is not reliable. | |
| # Example: use 32bit Python: export VERSIONER_PYTHON_PREFER_32_BIT=yes | |
| def arch(): | |
| import ctypes | |
| return {4: "i386", 8: "x86_64"}[ctypes.sizeof(ctypes.c_size_t)] |
| /* set default namespace to XUL */ | |
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| .tabbrowser-tab[selected] { margin-top: -1px !important; } | |
| .tab-background-middle { | |
| border-left: none !important; | |
| border-right: none !important; | |
| margin: 0 -0.5px !important; | |
| } |
| #!/usr/bin/env perl | |
| #============================================================================= | |
| # | |
| # FILE: dmarc-report-display.pl | |
| # | |
| # USAGE: ./dmarc-report-display.pl REPORT | |
| # | |
| # DESCRIPTION: Parse and display a DMARC report | |
| # | |
| # REQUIREMENTS: Perl 5.10; File::LibMagic, Term::ANSIColor; XML::LibXML |
| ac97-powersave.conf | |
| auto-hibernate.conf | |
| --- /etc/laptop-mode/conf.d/auto-hibernate.conf 2014-09-07 13:38:23.000000000 -0500 | |
| +++ auto-hibernate.conf 2013-09-25 21:09:36.603610468 -0500 | |
| @@ -8,21 +8,21 @@ | |
| # Auto-hibernation settings | |
| # ------------------------- | |
| # | |
| -#__COMMENT Using these settings, you can make laptop mode tools automatically put your | |
| -#__COMMENT computer into hibernation when the battery level goes critically low. |
| vmname="IPFS" | |
| iso=/ipfs/QmdTmSQtCz9D6vt2AbvQkYo3edFcTYoU7FDmDD7bPWDccA/ipfs.iso | |
| define notfound | |
| $(iso) not found | |
| make sure the daemon is running and mounted: | |
| ipfs daemon & | |
| ipfs mount | |
| endef | |
| export notfound |
| # ------------------------------------------------------------------------------ | |
| # tlp - Parameters for power save | |
| # Hint: some features are disabled by default, remove the leading # to enable | |
| # them. | |
| # Set to 0 to disable, 1 to enable TLP. | |
| TLP_ENABLE=1 | |
| # Seconds laptop mode has to wait after the disk goes idle before doing a sync. |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| #!/usr/bin/bash | |
| xconfig="/etc/X11/xorg.conf" | |
| if [ -e "$xconfig" ] | |
| then | |
| echo "Nvidia xconfig detected" | |
| echo "Switching to mesa..." | |
| sudo pacman -S lib32-mesa-libgl mesa-libgl | |
| sudo rm $xconfig | |
| else |