Skip to content

Instantly share code, notes, and snippets.

Avatar

Ollivier Robert keltia

View GitHub Profile
@keltia
keltia / # mutt - 2019-03-29_09-43-55.txt
Created Apr 5, 2019
mutt on macOS 10.14.3 - Homebrew build logs
View # mutt - 2019-03-29_09-43-55.txt
Homebrew build logs for mutt on macOS 10.14.3
Build date: 2019-03-29 09:43:55
@keltia
keltia / spki.sh
Created Apr 17, 2018
Generate a SPKI hash for Stubby
View spki.sh
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 Apr 10, 2017
Migrate all gems from one Ruby version to another, useful when using `rbenv`
View migrate-gems.sh
#!/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 Mar 9, 2016
Quick & dirty...
View quick.md

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

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 Apr 3, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/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 Jan 4, 2012
Running radiant:extensions:clipped:migrate_from_page_attachments
View gist:1559414
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...
^