Skip to content

Instantly share code, notes, and snippets.

View ssunday's full-sized avatar
🔥
Everywhere, always

Sarah Sunday ssunday

🔥
Everywhere, always
View GitHub Profile
@ssunday
ssunday / keybase.md
Created April 29, 2019 16:25
keybase.md

Keybase proof

I hereby claim:

  • I am ssunday on github.
  • I am ssunday (https://keybase.io/ssunday) on keybase.
  • I have a public key ASC-wv6zONtRvfVjsvh1kL5D_Oah8oj5rmAZeErLWz5NGAo

To claim this, I am signing this object:

- `csplit -s -f PREFIX FILE PATTERN {9999999}` - Split file by pattern
- `scp -i KEY ORIG DEST` - Move stuff between places
- `df -h` - How much disk space do I have?
- `df -i` - Inode usage
- `which EXECUTABLE` - Where is this executable coming from?
- `ps aux | grep THING` - Processes matching THING
- `top` - top processes
- `lsof -i tcp:PORT` - What process is locking that port?
View octal permissions:
@ssunday
ssunday / gist:928aa2105ad623f45586a0f0b3c19064
Created May 10, 2017 19:43
Send dead letter messages back to SQS queue
1. Set Dead letter queue's dead letter queue to the main queue you want to send messages from
2. Set max receives to 1
3. View messages/start polling for messages in dead letter queue
4. Verify messages have been sent to other queue and stop the redrive policy on the dead letter queue.
@ssunday
ssunday / view_octal_commands.sh
Created February 28, 2017 20:47
View Octal Permissions on Command Line
# Mac OS X
stat -f '%A %N' *
# Linux
stat -c "%a %n" *