Skip to content

Instantly share code, notes, and snippets.

@ashleymcnamara
ashleymcnamara / gettoknowyou.txt
Last active August 16, 2022 19:37
Get to know you survey
## TELL ME ABOUT YOURSELF
#### You can fill this form out on your own or we can do it together, conversation style. If you prefer to have a conversation then please let me know so we can extend our 1:1
* What are your pronouns?
* What's your personality type? (example: I'm an ENPF [Take the quiz](https://www.16personalities.com/free-personality-test))
* What motivates you?
* What keeps you up at night?
* What's your learning style? (example: I'm an Auditory-ISFP, but keep in mind that people can be between learning styles or identify with more than one. Don't let it define you. It's simply information [Take the quiz](https://learningstylequiz.com/))
* Visual (spatial)
* Aural (auditory)
@DanielFGray
DanielFGray / gitlog.sh
Last active September 18, 2017 19:24
fancy git-log stuff
git log --graph --oneline --decorate --all --color=always |
fzf --ansi +s --preview='git show --color=always {2}' \
--bind='pgdn:preview-page-down' \
--bind='pgup:preview-page-up' \
--bind='enter:execute:git show --color=always {2} | less -R' \
--bind='ctrl-x:execute:git checkout {2} .'
@jakeydevs
jakeydevs / dup.bash
Created August 2, 2016 14:44
Duplicates a 1 page PDF file 10 times
#!/bin/bash
for i in {2..10}
do
./pdftk 1.pdf $i.pdf cat output $(($i+1)).pdf
rm $i.pdf
done
@oli-logicnow
oli-logicnow / githubencryption.sh
Created June 10, 2016 10:04
A script to make encrypting something using somebodies public github key easier
#!/bin/bash -eux
# githubencryption.sh github_username file_to_encrypt
# NOTE: only works if you've one key in github
export tmpfile=$(mktemp /tmp/key.XXXXXX)
export tmppem=$(mktemp /tmp/pem.XXXXXX)
curl -s -o $tmpfile https://github.com/$1.keys
chmod 600 $tmpfile
ssh-keygen -f $tmpfile -e -m PKCS8 > $tmppem
openssl rsautl -encrypt -pubin -inkey $tmppem -ssl -in $2 -out $2.encrypted
echo "To decrypt: openssl rsautl -decrypt -inkey YOUR_PRIVATE_KEY -in $2.encrypted -out $2"
@daveio
daveio / simon-sweeney-letter.md
Last active February 23, 2016 10:03
What has the EU ever done for us?

This letter was originally published by [Guardian Letters][0], and has been reformatted for clarity and ease of reading. Other than minor punctuation and significant layout changes, it is presented verbatim.

At last we may get a debate on Britain's relationship with Europe ([Leader][1], 11 January). What did the EEC/EU ever do for us? Not much, apart from:

  • Providing 57% of our trade.
  • Structural funding to areas hit by industrial decline.
  • Clean beaches and rivers.
  • Cleaner air.
  • Lead free petrol.
  • Restrictions on landfill dumping.
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active July 2, 2024 07:48
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@rajbharath
rajbharath / Postman UUID
Created June 26, 2015 13:11
How to create UUID in postman rest client
{{$guid}}
the above variable will generate UUID in Postman Rest Client
Sample request is below
========================
{
"user":{
"id":"{{$guid}}"
}
@rcook
rcook / LICENSE
Last active August 7, 2021 04:42 — forked from jbonney/crontab.sh
The MIT License (MIT)
Copyright (c) 2014 Richard Cook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@coffeemug
coffeemug / gist:6168031
Last active February 3, 2022 23:16
The fun of implementing date support
After spending the better part of the month implementing date support
in RethinkDB, Mike Lucy sent the team the following e-mail. It would
have been funny, if it didn't cause thousands of programmers so much
pain. Read it, laugh, and weep!
-----
So, it turns out that we're only going to support dates between the
year 1400 and the year 10000 (inclusive), because that's what boost
supports.