Skip to content

Instantly share code, notes, and snippets.

View emersion's full-sized avatar

Simon Ser emersion

View GitHub Profile
@emersion
emersion / .background-tags
Last active July 27, 2017 09:25
background-rotate
makise_kurisu rating:s width:>1000 height:>900
@emersion
emersion / README.md
Last active May 9, 2017 17:59 — forked from jpillora/install-micro.sh
Install micro text editor

Install micro

curl -L https://gist.github.com/emersion/c95d210fc9123f2c30f99112b0c913c0/raw/install-micro.sh | bash
@emersion
emersion / openpgp.txt
Created August 21, 2016 12:11
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:34ff9526cfef0e97a340e2e40fde7be0e88f5e48]
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.28 KiB | 0 bytes/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), completed with 5 local objects.
remote: ruby-jemalloc: symbol lookup error: /data/github/current/vendor/gems/2.1.7/ruby/2.1.0/gems/json-1.8.3/lib/json/ext/generator.so: undefined symbol: rb_data_typed_object_alloc
To git@github.com:ProtonMail/Desktop-Bridge.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:ProtonMail/Desktop-Bridge.git'
@emersion
emersion / imap-capability.md
Last active February 12, 2020 04:01
Common IMAP servers CAPABILITY responses

FastMail

* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=OTP SASL-IR
* CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE URLAUTH

Gandi.net

@emersion
emersion / codecov-go.sh
Last active August 28, 2016 11:25
Codecov for all Go packages in a repo
#!/usr/bin/env bash
set -e
echo "" > coverage.txt
retval=0
for d in $(find . -maxdepth 10 \( -path ./vendor -o -path './.*' -o -name '_*' \) -prune -o -type d -print); do
if ls $d/*.go &> /dev/null; then
go test -v -coverprofile=profile.out -covermode=atomic $d

Keybase proof

I hereby claim:

  • I am emersion on github.
  • I am emersion (https://keybase.io/emersion) on keybase.
  • I have a public key whose fingerprint is 34FF 9526 CFEF 0E97 A340 E2E4 0FDE 7BE0 E88F 5E48

To claim this, I am signing this object:

@emersion
emersion / PrintOddNumbersVerifiedByMicrosoftSQLServer2012.sql
Created February 20, 2016 23:08
PrintOddNumbersVerifiedByMicrosoftSQLServer2012.sql
DECLARE @start INT = 1;
DECLARE @end INT = 100;
WITH numbers AS (
SELECT @start AS number
UNION ALL
SELECT number + 1
FROM numbers
WHERE number < @end
)
@emersion
emersion / index.html
Created January 15, 2016 11:22
Vertical align class
<div class="valign" style="height: 500px;">
<div>
Hi!<br>
My name is... JOHN CENA!!1
</div>
</div>
@emersion
emersion / serialize-object.jquery.js
Created September 24, 2015 19:11
Just like $.fn.serializeArray(), but returns an object
$.fn.serializeObject = function () {
var arr = this.serializeArray();
var obj = {};
for (var i = 0; i < arr.length; i++) {
var item = arr[i];
obj[item.name] = item.value;
}
return obj;