Skip to content

Instantly share code, notes, and snippets.

@ana-cc
ana-cc / addkey.sh
Created December 2, 2020 21:36
One-liner to add public key to authorized key file on remote machine
ssh user@host 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ssh/id_rsa.pub
@ana-cc
ana-cc / startup.plist
Last active December 2, 2020 21:12
Simple .plst file for running a startup script on MacOS with launchd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--File goes in $HOME/Library/LaunchAgents/ to run as that user-->
<!--Load with: launchctl load -w startup.plist -->
<plist version="1.0">
<dict>
<key>Label</key>
<string>startup</string>
<key>ProgramArguments</key>
@ana-cc
ana-cc / pleroma_zenburn_theme.json
Last active January 23, 2019 14:11
Pleroma Zenburn Theme
{
"_pleroma_theme_version": 2,
"theme": {
"fonts": {},
"shadows": {},
"opacity": {},
"colors": {
"bg": "#2f2f2f",
"text": "#c3bf9f",
"link": "#bc6c4c",
@ana-cc
ana-cc / Xresources.snippet
Created January 20, 2019 21:01
Zenburn Xresources Theme
! special
*.foreground: #dfaf8f
*.background: #3f3f3f
*.cursorColor: #dfaf8f
! black
*.color0: #3f3f3f
*.color8: #4f4f4f
! red