Skip to content

Instantly share code, notes, and snippets.

💭
Stuff is happening.

Florian Gilcher skade

💭
Stuff is happening.
Block or report user

Report or block skade

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@skade
skade / Procfile
Created Nov 10, 2011
Using Foreman & tail to follow the whole stack
View Procfile
app: padrino start -p 4000 -c my_app_folder -e development
redismonitor: redis-cli MONITOR
nginxtail: tail -n1 -f /var/log/nginx/access.log
@skade
skade / Guardfile
Created Feb 27, 2012 — forked from dhepper/ci.sh
Poor man's CI, Ruby edition
View Guardfile
# gem install guard; guard
guard 'django_tests' do
watch(%r{(.+)\.py}) do |m|
`django-admin.py test main`
end
end
@skade
skade / gist:3251351
Created Aug 3, 2012
A statement about the Vagrant Usergroup Berlin July
View gist:3251351
Hello everyone,
as most of you will have noticed, there was no Vagrant Usergroup Berlin in July.
The reasons are simple: most of the organizing Team - Robert, Jana, Felix and
myself - are currently involved in Eurucamp (http://2012.eurucamp.org). The camp
will take place in 2 weeks (17. - 19. of August). After the camp, all systems
should be back to normal and we will try to organize another Vagrant UG as soon
as possible.
Thank you all,
View gist:4174945
f = -> h,k { h[k] = Hash.new(&f) }
h = Hash.new &f
data = {
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:name" => "max",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:text" => "bla",
"80e33bc0-1b9a-0130-d2fb-38f6b113e413:data:message:line:x" => 123
}
data.each do |path, v|
@skade
skade / function_to_copy.rs
Last active Oct 28, 2015
function_to_copy
View function_to_copy.rs
use std::net::{TcpListener, TcpStream};
use std::io::BufReader;
use std::io::BufRead;
use std::io::Write;
fn read_message(stream: &mut TcpStream) -> String {
let mut read_buffer = String::new();
let mut buffered_stream = BufReader::new(stream);
let res = buffered_stream.read_line(&mut read_buffer);
View function_to_copy.rs
fn handle(mailbox: &mut Mailbox, stream: &mut TcpStream) {
let message = read_message(stream);
match message.trim() {
"READ" => {
let maybe_mail = mailbox.get_mail();
if let Some(mail) = maybe_mail {
write!(stream, "{}", mail);
} else {
write!(stream, "Sorry, no new messages!");
}
View gist:4319867

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

@skade
skade / hackday_info
Created Feb 1, 2013
eurucamp JRuby Hackday
View hackday_info
Hi,
you are receiving this email because you registered for the first eurucamp hackdays[1] that are happening this weekend at co.up. To get there, take the subway to Kottbusser Tor. Co.up is in the building at the rear of Adalbertstraße 7.
http://goo.gl/maps/gFYgV
I will open the doors at 9:00am on both days and keep them open for as long as possible/necessary. The room is prepared, some help cleaning it up on the evenings is much appreciated. We have drinks at the usual co.up prices (1.50 per bottle) and I will bring coffee beans. As usual, we might be ordering pizza or something similar during the day.
Be aware that you don't need to be on time - there will be enough time to introduce everyone personally and to hand out tasks for those that don't have any. Just drop by when its convenient for you.
@skade
skade / cancellation.md
Created Mar 5, 2013
eurucamp hackdays 03/2013 cancellation
View cancellation.md

eurucamp hackdays 03/2013 cancellation

Hi Berlin Ruby Hackers,

this might not be unexpected, given the silence and missing advertisment about the event after the inital announcement on the last rug_b: I cancelled eurucamp hackdays for March 2013. I just don't have the time and energy for running it currently.

Sorry for cancelling so late, I thought I'd find the time.

I am currently searching for dates in April, so stay tuned.

View gist:6123519

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

You can’t perform that action at this time.