Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| #1 Openssh server | |
| sudo apt install -y openssh-server | |
| sudo systemctl enable ssh | |
| sudo systemctl start ssh | |
| sudo ufw enable | |
| sudo ufw allow ssh | |
| #2 Docker (https://docs.docker.com/engine/install/ubuntu/) | |
| sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| #!/bin/bash | |
| ICON_BLUETOOTH="" | |
| ICON_BATTERY_FULL="" | |
| ICON_BATTERY_THREE_QUARTERS="" | |
| ICON_BATTERY_HALF="" | |
| ICON_BATTERY_QUARTER="" | |
| ICON_BATTERY_EMPTY="" | |
| BLUETOOTH_BATTERY_STATUS=$HOME/src/scripts/bluetooth_battery_status.sh |
Sourced from: https://serverfault.com/questions/211425/can-etckeeper-be-used-to-track-config-files-outside-of-etc
Create a new etckeeper script: vim /etc/etckeeper/commit.d/20mirror-outside-files
#!/bin/sh
set -e
# Based on nealmcb's + ErebusBat's script from http://serverfault.com/questions/211425/| 10 print chr$(147) | |
| 20 ca=1024:cp=54272:r=25:co=40 | |
| 30 poke 53280,0:poke 53281,0 | |
| 40 forw=3to50:fori=1to12:forj=0to12:k=i+j | |
| 50 c=j+j+j/(i+3)+i*w/12 | |
| 60 k1=ca+i+(co*k):i1=ca+k+(co*i):c1=cp+k1:c2=cp+i1 | |
| 70 k2=ca+(co-i)+(co*(r-k)):i2=ca+(co-k)+(co*(r-i)):c3=cp+k2:c4=cp+i2 | |
| 80 k3=ca+(co-i)+(co*k):c5=cp+k3:i3=ca+k+(co*(r-i)):c6=cp+i3 | |
| 90 k4=ca+(co-k)+(co*i):c7=cp+k4:i4=ca+i+(co*(r-k)):c8=cp+i4 | |
| 100 poke k1,81:poke c1,c:poke i1,81:poke c2,c |
| { | |
| "Add include guard": { | |
| "prefix": "guard", | |
| "description": "Adds an ifndef include guard to a C/C++ header", | |
| "body": [ | |
| "#ifndef __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__", | |
| "#define __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__", | |
| "", | |
| "$0", | |
| "", |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |