This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Het grote 'zet-de-tv-goed-beunscript' | |
# Copyrighties belong to me :) | |
# TO DO BEFORE USAGE | |
# Hide Unity Launcher | |
# Install Firefox | |
# Setup exception for wrong certificates of CH | |
# Set enabled=0 in /etc/default/apport to prevent error messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove this line. Name this file: ~/.config/autostart/bash.desktop | |
[Desktop Entry] | |
Type=Application | |
Name=TV Systeem | |
Comment=Sponsoring en activiteiten | |
Exec=sh /home/tv/.autostart | |
Hidden=false | |
NoDisplay=false | |
Icon=system-run | |
X-GNOME-Autostart-enabled=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using preeseeding https://help.ubuntu.com/lts/installation-guide/i386/preseed-using.html | |
# Inspired by http://www.briancarpio.com/2012/04/04/system-automation-part-1/ | |
# and https://help.ubuntu.com/12.04/installation-guide/example-preseed.txt | |
# Change PXE default: | |
# label Ubuntu 10.04 (Ubuntu 10.04) | |
# menu label Ubuntu 10.04 (Ubuntu 10.04) | |
# kernel pxe/images/ubuntu/ubuntu-10.4-x86_64 | |
# append initrd=pxe/images/ubuntu/ubuntu-10.4-x86_64.img \ | |
# ksdevice=eth0 DEBCONF_DEBUG=5 locale=en_US.UTF-8 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[]{article} | |
\usepackage[a4paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry} | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{graphicx} | |
\usepackage{float} | |
\setlength{\parindent}{0cm} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
[*.cs] | |
indent_style = space | |
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import java.io.{FileInputStream, InputStream} | |
import play.api.libs.iteratee._ | |
import play.api.mvc.{Action, _} | |
import scala.concurrent.ExecutionContext.Implicits.global | |
object Application extends Controller { | |
def zipRandom = Action { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class Main { | |
public static int startStock = 20; | |
public static int deliveryTime = 2; | |
public static int box = 30; | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract all photos from your unencrypted backup. Includes Whatsapp photo's and videos. | |
dir="name-of-backup-folder" | |
(IFS=' | |
' | |
for file in `ls $dir`; do | |
out=$(cd $dir;file --mime-type $file); | |
if [[ $out == *"image/"* ]]; then | |
ext=`sed -e 's/.*image\/\(.*\)$/\1/g`; | |
cp "$dir"/"$file" "extract-tmp/"$file.$ext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bisect | |
class NFA(object): | |
EPSILON = object() | |
ANY = object() | |
def __init__(self, start_state): | |
self.transitions = {} | |
self.final_states = set() | |
self._start_state = start_state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// buffer.swift | |
// | |
// Created by H.J. Banken on 06/10/2015. | |
// Copyright (c) 2015 Q42 Internet B.V. All rights reserved. | |
// | |
public class BufferList<T> { | |
private let maker: (Int -> T?) | |
private let offset: Int |
OlderNewer