Skip to content

Instantly share code, notes, and snippets.

View spodkowinski's full-sized avatar

Stefan Podkowinski spodkowinski

View GitHub Profile
@m-ou-se
m-ou-se / replace-debian-with-arch.txt
Last active July 3, 2025 21:23
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1
from pyspark.sql import SQLContext
sql = SQLContext(sc)
mysql_movies = sql.read.jdbc("jdbc:mysql://127.0.0.1:3307/movielens?user=root", "movielens.movies")
mysql_movies.write.format("org.apache.spark.sql.cassandra").options(table="movies", keyspace="lens").save(mode="append")
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active October 31, 2025 08:25
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@derekwyatt
derekwyatt / Master.scala
Created August 16, 2012 14:10
The Terminator pattern
import akka.actor.{Actor, ActorRef}
class Master(surrogate: ActorRef) extends Actor {
import Terminator._
// Askf for the kids
override def preStart() {
surrogate ! GetChildren(self)
}
@jxson
jxson / README.md
Created February 10, 2012 00:18
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation