Skip to content

Instantly share code, notes, and snippets.

Computer Information:
Manufacturer: System76
Model: Kudu
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
CPU Family: 0x6
CPU Model: 0x9e
@angela-d
angela-d / gpg-key-migration.md
Created April 1, 2018 23:57
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

@angela-d
angela-d / linux-printer-scanner-setup.md
Last active April 20, 2021 14:42
Setup Printer & Scanner on Linux

Kodak ESP 2150 AIO Printer & Scanner Setup for Linux

The drivers and instructions were originally written by Paul Newall and obtained from Sourceforge (which requires an obscene amount of 3rd party scripts to be whitelisted just to get to the downloads) - so I'm posting these to Github incase anyone else with this printer needs easier access to the install instructions. I also had to do a few extra steps to get the scanner working on Debian, so I compiled my steps with Paul's.

These are the steps taken to get both the printer and scanner working on Debian; if running a Debian derivative like Ubuntu or Mint, the steps should be identical.

Although these steps were for the Kodak ESP Office 2150, nearly any supported printer should work with these steps (except for the part where you obtain & upload the .ppd driver; if using a different model printer, snag your particular driver from the project's Sourceforge page).

Printer Setup


@angela-d
angela-d / ssh-shortcuts.md
Created March 30, 2018 05:54
SSH Terminal Alias Shortcuts

SSH Alias Shortcuts

Instead of logging into a remote server long-form, like ssh -i ~/.ssh/angela root@[host] -p22 ... make shortcuts!

ssh remoteserver

...and you're in.

@angela-d
angela-d / find-replace-recursively.md
Created March 30, 2018 02:29
Recursively find & replace .git/config data in Linux

Find & Replace content in your .git/config recursively

Useful for when you change handles or mistakenly run a global config command.

In your terminal, run:

sed -i -e 's/find_this/replace_this/g' ~/Github/angela-d/*/.git/config

Replace find_this with the entry you want to change

@angela-d
angela-d / README.md
Last active October 14, 2023 23:24
Allow Non-root users acess to Apache logs

Non-root user access to Apache logs

Instructions applicable for Debian or Debian deriatives like Ubuntu. To use for other distros or directories, simply switch the affected directories in the steps.

In this example, the user group is "angela," change that to whatever group you wish to grant access, like "devs"

As root, set the acl:

setfacl -m g:angela:rx /var/log/apache2/*
@angela-d
angela-d / csfpost.sh
Last active March 17, 2018 04:53
CSF Post -- Filter Commonly hit URLs and Annoyances at the Firewall Level
#!/bin/bash
# block annoying http hits that litter your logs with CSF.
# for use with an existing, operable install of CSF firewall; find it at: https://configserver.com/cp/csf.html
# place this file in /etc/csf/ with the filename csfpost.sh; like so: /etc/csf/csfpost.sh
# make it executable: chmod u+x csfpost.sh
# after you add/modify your preferred rules, run: csf -r so the firewall restarts with these rules loaded.
# don't block this if you use xmlrpc.php in WordPress
/sbin/iptables -I INPUT -p tcp --dport 80 -m string --to 1000 --string "xmlrpc.php" --algo kmp -j DROP
# if you have any URLs with "admin" in the url, expect them to be broken after this rule takes effect