Skip to content

Instantly share code, notes, and snippets.

View antifuchs's full-sized avatar
🕴️

Andreas Fuchs antifuchs

🕴️
View GitHub Profile
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
;; My helm config for pretty fast updates when hitting RET too quickly after typing fast:
(setq helm-idle-delay 0.0 ; update fast sources immediately (doesn't).
helm-input-idle-delay 0.01 ; this actually updates things
; reeeelatively quickly.
helm-quick-update t
helm-M-x-requires-pattern nil
helm-ff-skip-boring-files t)
;;; SMTP settings:
;; Available SMTP accounts.
(require 'smtpmail)
(setq smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
starttls-use-gnutls t
@antifuchs
antifuchs / keybase-proof.md
Last active August 29, 2015 13:57
My Keybase identity proof (at https://keybase.io/asf)
-----BEGIN PGP MESSAGE-----
Comment: GPGTools - http://gpgtools.org

owGbwMvMwMS47tLCpXv9V05hPH3gWRJDsMRCnmqlpPyUSiWraqXsVDCVlpmXnlpU
UJSZV6JkpZSSZGCcnGJsYG6QZpxkaWhqkppomGqelGaeYmiSmJJmkmZsbJSUkpqo
pKOUkV8M0gE0JimxOFUvMx8oBuTEZ6YARc1dDE0cXdxM3IDqnVxcHYFypWAJI/Nk
E7NkcxNzC/NEg2QL82SjpDQLE6O0VPPk5DRLAwOQwuLUorzE3FSg6sTiNKVaHSWg
QFlmcirIuVCJ9MySjNIkNMV5JZlppckZxSAtJZUFILHy1KR4qO74pMy8FKBngZrK
UouKM/PzlKwMgSqTSzJB2g2NLU0MjYwNjAx0lFIrCjKLUuMzQSpMzc0sDIBAR6mg
source 'https://rubygems.org'
group :unclear do
gem 'bundler-git-repo', :git => 'git@github.com:antifuchs/bundler-git-repo.git', :ref => 'fd010ae5d55f5e66d5cc957d2670fa73f27f9b45'
end
@antifuchs
antifuchs / ENV.md
Created October 9, 2014 22:19
antifuchs' bundler environment
  • Your Bundler configuration settings (run bundle config)
Settings are listed in order of priority. The top value will be used.
build.thrift
Set for the current user (/Users/asf/.bundle/config): "--with-cppflags=-D_FORTIFY_SOURCE=0"

jobs
Set for the current user (/Users/asf/.bundle/config): "8"
$ make visitor-nbi
rm -rf output/osx-visitor.nbi
#dir=$(hdiutil attach -readonly output/osx-visitor-10.10.1-14B25.dmg | awk '/Apple_HFS/ {print }' | cut -f 3 -d ' ') ;
dir='/Volumes/Macintosh HD 2'; \
echo "$dir" ; \
sudo /System/Library/CoreServices/Applications/System\ Image\ Utility.app/Contents/MacOS/imagetool --plist `pwd`/netboot-plists/visitor.plist --source "$dir" ; \
hdiutil detach "$dir"
/Volumes/Macintosh HD 2
Create NetRestore Image
@antifuchs
antifuchs / fizzbuzz_with_variables.c
Last active August 29, 2015 14:16
I am a monster & very sorry. Also, this is unlikely to be correct.
#include <stdio.h>
int main ()
{
int three = 3, five = 5;
int i;
for (i = 0; i < 20; i++) {
if (i != three && i != five) {
printf("%d\n", i);
continue;
#!/bin/sh
echo "$4"
exit "$5"
@antifuchs
antifuchs / config.org
Last active August 29, 2015 14:22
This is the filladapt mode I use to enable filling

Filladapt - better filling through patterns

Seeeeriously the best adaptive filling mode there is. With the customization I made to it, it can even perfectly fill YARDoc comment strings in ruby.

(autoload 'turn-on-filladapt-mode "filladapt" "Turn on the glorious Filladapt mode.")

(defun asf-turn-on-filladapt ()
  (unless (eq major-mode 'org-mode)