Skip to content

Instantly share code, notes, and snippets.

View xi-ao's full-sized avatar

Anaël Ollier xi-ao

View GitHub Profile
@blakek
blakek / install-yaourt.sh
Last active October 29, 2019 06:32
An easy yaourt install script for Arch Linux (and variants). Made so I can set up Arch either offline or online without having to remember what I need.
#!/bin/bash -e
make_a_pkg() {
printf '** Making package "%s"...\n' "$1"
tar zxf "$1.tar.gz"
cd "$1"
makepkg -si
cd ..
}
@wo0dyn
wo0dyn / gist:3340763
Last active March 17, 2023 11:04
Write “KFC” with one-line-script using the string “Kentucky Fried Chicken” once.

KFC

Write KFC with one-line-script using the string “Kentucky Fried Chicken” once.

Bash

for w in $(echo "Kentucky Fried Chicken" | tr " " "\n"); do echo -n ${w:0:1}; done;
@futuremill-ltd
futuremill-ltd / gist:2318876
Created April 6, 2012 11:00
Building Ruby 1.9.3 package for Debian Squeeze
# From a fresh install of squeeze
apt-get install ruby rubygems # Need ruby to use fpm
gem1.8 install fpm --no-ri --no-rdoc
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -zxvf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125
rm -rf /tmp/ruby193