Skip to content

Instantly share code, notes, and snippets.

View felixfischer's full-sized avatar

Felix Fischer felixfischer

View GitHub Profile
@felixfischer
felixfischer / do-droplet-init.sh
Last active August 29, 2015 14:03
DigitalOcean Droplet initialization
# execute this script by running the following command as root on your droplet
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/felixfischer/8f27e053e8d551e4f417/raw/do-droplet-init.sh)"
echo -e "\n--> Fixing locale warnings\n"
locale-gen de_DE.UTF-8
echo -e "\n--> Updating the system\n"
apt-get update
apt-get -y upgrade
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
# Installation:
# curl -sL https://gist.githubusercontent.com/felixfischer/a27f093f61ef96c3c50c/raw | bash
sudo apt-get install -y git
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc
printf '\nsource "$HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash"' >> $HOME/.bashrc
$HOME/.homesick/repos/homeshick/bin/homeshick clone felixfischer/homedir
$HOME/.homesick/repos/homeshick/bin/homeshick link -f
source $HOME/.bashrc
source $HOME/.profile
@felixfischer
felixfischer / Sass-Type-Scale-with-Vertical-Rhythm.markdown
Last active August 29, 2015 14:10
Responsive Type Scale with Sass
@felixfischer
felixfischer / felix_(drink).md
Last active August 29, 2015 14:26
Felix (Drink)

Felix (Drink)

  • sparkling wine
  • cola
  • lime (optional)

Squeeze lime wedge into a coffee mug, add ice cubes (optional), pour in sparkling wine, fill with cola.


@felixfischer
felixfischer / dotfiles
Created February 19, 2012 20:59
install dotfiles
git clone https://github.com/felixfischer/dotfiles.git ~/dotfiles
mv -bf ~/dotfiles/* ~/dotfiles/.* ~
rm -rf ~/dotfiles
cd ~
@felixfischer
felixfischer / sc-dl-min.js
Created May 6, 2012 13:58 — forked from duncanbeevers/sc-dl-min.js
Bookmarklet that generates download link for a Soundcloud upload
(function(a){function f(a){var b=a.find(".actionbar");return b.length?b:a.prepend('<div class="actionbar"><div class="actions"><div class="primary"></div></div></div>')}function e(a,b){var c=b.find(".actions"),d=c.find(".download");d.length||c.prepend('<a href="'+a.streamUrl+'" class="download pl-button" download="'+a.title+'" title="'+a.title+'">Download track</a>')}function d(a,b){var d=null;b.hasClass("nano")?d=f(b.closest(".track-title").find(".track")).css({marginLeft:"18px"}):b.hasClass("small")&&(d=f(b.find(".container"))),d&&c(a,d)}function c(a,b){var c=b.find(".download, .mock-download");if(!c.length){var d=$('<a class="pl-button mock-download"><span>Download</span></a>').css({backgroundImage:"url(http://soundcloud.com/images/icons_mini.png?unicorn26)",backgroundRepeat:"no-repeat",backgroundPosition:"-77px -236px",paddingLeft:"18px"}).attr("download",a.title+".mp3");b.find(".primary").append(d),d.attr("href",a.streamUrl)}}function b(a){var b=$.helpers,f=b.getPlayerTrack(b.getPlayerNode(a)),g=a.find("
<h1>HTML Test Page</h1>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
<h2>Heading 2</h2>
I've had twelve years to think about it. And if I had it to do over again, I would have grabbed the phaser and pointed it at you instead of them. Could someone survive inside a transporter buffer for 75 years? Maybe we better talk out here; the observation lounge has turned into a swamp. Now, how the hell do we defeat an enemy that knows us better than we know ourselves?
Blockquote:
<blockquote>Now we know what they mean by 'advanced' tactical training. We know you're dealing in stolen ore. But I wanna talk about the assassination attempt on Lieutenant Worf. The look in your eyes, I recognize it. You used to have it for me. Earl Grey tea, watercress sandwiches... and Bulari
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.