Skip to content

Instantly share code, notes, and snippets.

View keltia's full-sized avatar

Ollivier Robert keltia

View GitHub Profile
@keltia
keltia / # mutt - 2019-03-29_09-43-55.txt
Created April 5, 2019 10:40
mutt on macOS 10.14.3 - Homebrew build logs
Homebrew build logs for mutt on macOS 10.14.3
Build date: 2019-03-29 09:43:55
@keltia
keltia / spki.sh
Created April 17, 2018 13:04
Generate a SPKI hash for Stubby
echo | openssl s_client -connect '9.9.9.9:853' 2>/dev/null | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
# replace 9.9.9.9 by 1.1.1.1/1.0.0.1/etc.
@keltia
keltia / migrate-gems.sh
Created April 10, 2017 11:41
Migrate all gems from one Ruby version to another, useful when using `rbenv`
#!/bin/zsh -i
# if you're using ZSH, change the shebang above to "#!/bin/zsh -i"
eval "$(rbenv init -)"
if [ ${#} -ne 2 ]; then
echo >&2 Usage: $(basename ${0}) old-version new-version
exit 1
fi
@keltia
keltia / quick.md
Last active March 9, 2016 22:04
Quick & dirty...

Quick & dirty

Sur github.com

fork de foo/bar en moi/bar

En local

git clone github.com/moi/bar

git remote add upstream github.com/foo/bar # pour les git fetch d'après

@keltia
keltia / gist:11371812
Created April 28, 2014 13:19
Easiest SPF entry (RFC-7208)
@ TXT "v=spf1 ip4:0.0.0.0/0 ip6:::/0 ?all"
@keltia
keltia / gist:10989573
Last active August 29, 2015 13:59
Fetch public keys for "User ID not found" signatures on a given key
gpg --with-colons --list-sigs <keyid> | awk -F: '$10 ~/not found/{print $5}'| xargs gpg --recv-keys
@keltia
keltia / keybase.md
Created March 8, 2014 22:19
### Keybase proof

Keybase proof

I hereby claim:

  • I am keltia on github.
  • I am roberto (https://keybase.io/roberto) on keybase.
  • I have a public key whose fingerprint is 6E4B 152C D90D E292 5B97 D338 8BE8 79B0 2873 1E1C

To claim this, I am signing this object:

@keltia
keltia / hack.sh
Created April 3, 2012 08:05 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@keltia
keltia / gist:1559414
Created January 4, 2012 10:08
Running radiant:extensions:clipped:migrate_from_page_attachments
I mau have missed something during the 0.7.1 -> 0.9.1 migration...
1227 [11:05] roberto@centre:/www/oradiant> bundle exec rake production radiant:extensions:clipped:migrate_from_page_attachments
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.Gem.source_index called from /home/staff/roberto/.rvm/gems/ruby-1.9.3-p0@1.9.3/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21.This task can clean up traces of the page_attachments (think table records and files currently in /public/page_attachments).
If you would like to use this mode type "yes", type "no" or just hit enter to leave them untouched for now.
yes
rake aborted!
PGError: ERROR: relation "old_page_attachments" does not exist
LINE 4: WHERE a.attrelid = '"old_page_attachments"'::re...
^