Skip to content

Instantly share code, notes, and snippets.

# Config
require "twitter"
config = {
consumer_key: "Der Twitter-Consumer-Key",
consumer_secret: "Das Twitter-Consumer-Secret",
access_token: "Das Access-Token",
access_token_secret: "Das Access-Token-Secret"
}
twitta = Twitter::REST::Client.new(config)
@old-school-devv
old-school-devv / feed.json
Created May 20, 2017 10:46
JSON Feed template for jekyll
---
layout: null
---
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.name | xml_escape }}",
"home_page_url": "{{ "/" | absolute_url }}",
"feed_url": "{{ "/feed.json" | absolute_url }}",
"description": {{ site.description | jsonify }},
"icon": "{{ "/apple-touch-icon-152x152.png" | absolute_url }}",
SetEnvIfNoCase User-Agent "(.*)cmscrawler(.*)" boeser
<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=boeser
</FilesMatch>
@old-school-devv
old-school-devv / xorg.conf
Created January 3, 2011 14:30
xorg.conf unter debian squeeze auf dem powerbook g4
Section "Device"
Identifier "Configured Video Device"
BusID "PCI:0:16:0"
Driver "nv"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
if Rails.version == '2.3.9' && Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) && self.class.const_defined?(:Mongrel)
# Pulled right from latest rack. Old looked like this in 1.1.0 version.
#
# def [](k)
# super(@names[k] ||= @names[k.downcase])
# end
#
module Rack
module Utils
ralf@hedwig:~
∴ rvm use 1.8.7
warn: ruby ruby-1.8.7-p302 is not installed.
info: To install do: 'rvm install ruby-1.8.7-p302'
ralf@hedwig:~
∴ rvm --trace use 1.8.7
--trace use 1.8.7
/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/core/ -I../../src/fe-common/core/ -I/usr/local/Cellar/glib/2.20.5/include/glib-2.0 -I/usr/local/Cellar/glib/2.20.5/lib/glib-2.0/include -O4 -march=core2 -mmmx -msse3 -w -pipe -Wall -c gui-entry.c
/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/core/ -I../../src/fe-common/core/ -I/usr/local/Cellar/glib/2.20.5/include/glib-2.0 -I/usr/local/Cellar/glib/2.20.5/lib/glib-2.0/include -O4 -march=core2 -mmmx -msse3 -w -pipe -Wall -c gui-expandos.c
/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/core/ -I../../src/fe-common/core/ -I/usr/local/Cellar/glib/2.20.5/include/glib-2.0 -I/usr/local/Cellar/glib/2.20.5/lib/glib-2.0/include -O4 -march=core2 -mmmx -msse3 -w -pipe -Wall -c gui-printtext.c
/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/core/ -I../../src
ralf@hedwig:~$ sudo brew install irssi
==> Downloading http://irssi.org/files/irssi-0.8.14.tar.bz2
File already downloaded and cached to /Library/Caches/Homebrew
/usr/local/Library/Homebrew/utils.rb:51: warning: Insecure world writable dir /private/tmp/homebrew-irssi-0.8.14-sZ1Q/irssi-0.8.14 in PATH, mode 040777
==> ./configure --prefix=/usr/local/Cellar/irssi/0.8.14 --disable-debug --disable-dependency-tracking --with-modules --enable-ssl --e
/usr/local/Library/Homebrew/utils.rb:51: warning: Insecure world writable dir /private/tmp/homebrew-irssi-0.8.14-sZ1Q/irssi-0.8.14 in PATH, mode 040777
==> make install
/usr/local/Library/Homebrew/formula.rb:303: warning: Insecure world writable dir /private/tmp/homebrew-irssi-0.8.14-sZ1Q/irssi-0.8.14 in PATH, mode 040777
./file2header.sh ./irssi.conf default_config > default-config.h
./file2header.sh ./default.theme default_theme > default-theme.h