Skip to content

Instantly share code, notes, and snippets.

Manuel manuel-io

Block or report user

Report or block manuel-io

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
@manuel-io
manuel-io / mail.py
Last active Jun 2, 2018
Python: Mail-Script
View mail.py
#!/usr/bin/env python2.7
import tempfile, os, sys, re, time, socket, smtplib
from subprocess import call
from email.parser import Parser
from email.mime.text import MIMEText
EDITOR = os.environ.get('EDITOR')
account = { 'host': 'posteo.de'
@manuel-io
manuel-io / compilation.sh
Created Mar 14, 2016
Building and installing a vanilla Linux kernel
View compilation.sh
cp /boot/config-$(uname -r) .config
make oldconfig
make localmodconfig
make menuconfig
fakeroot make-kpkg --initrd --append-to-version=-$(uname -n) kernel-image kernel-headers
View acme-client-runner.rb
#!/usr/bin/env ruby
# Automatic Certificate Management Environment (ACME)
# https://letsencrypt.github.io/acme-spec/
require 'acme-client'
require 'openssl'
require 'fileutils'
# ENDPOINT = 'https://acme-v01.api.letsencrypt.org'
@manuel-io
manuel-io / Gemfile
Last active Dec 2, 2015
Ruby draw electrical levels
View Gemfile
source 'https://rubygems.org'
gem 'chunky_png', '~> 1.3.0'
@manuel-io
manuel-io / parallel.hs
Last active May 11, 2016
Haskell: Parallel & Concurrent
View parallel.hs
import Control.Parallel
import Control.Parallel.Strategies
import Control.Applicative
import Data.Time.Clock
import System.Random
fac :: Int -> Int
fac 0 = 1
fac 1 = 1
fac n = n * fac (n-1)
View medion.rb
#!/usr/bin/env ruby
require 'rubygems'
require "serialport"
require 'optparse'
$:.unshift File.dirname(__FILE__)
require 'pdu'
module Medion
View 99-connectors.rules
# BeagleBone
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_interface", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="a6d0", DRIVER=="",
RUN+="/sbin/modprobe -b ftdi_sio"
SUBSYSTEM=="drivers", ACTION=="add", ENV{DEVPATH}=="/bus/usb-serial/drivers/ftdi_sio",
ATTR{new_id}="0403 a6d0"
ACTION=="add", KERNEL=="ttyUSB*", ATTRS{interface}=="BeagleBone", ATTRS{bInterfaceNumber}=="00",
SYMLINK+="beaglebone-jtag"
@manuel-io
manuel-io / ip6tables.rules
Last active Jan 20, 2017
Some IPTABLES Rules
View ip6tables.rules
*filter
:INPUT DROP
:FORWARD DROP
:OUTPUT DROP
# BAD GUYS & SPOOFED PACKETS
-A INPUT -m rt --rt-type 0 -j DROP
-A OUTPUT -m rt --rt-type 0 -j DROP
@manuel-io
manuel-io / minidlna.conf
Last active Sep 23, 2015
MiniDLNA Configuration
View minidlna.conf
user=minidlna
# media_dir=/media/dlna
media_dir=A,/media/dlna/music
media_dir=P,/media/dlna/pictures
media_dir=V,/media/dlna/movies
# db_dir=/var/cache/minidlna
# log_dir=/var/log
log_level=debug
# root_container=.
network_interface=lo,wlan0
View manure.tex
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
\usepackage[ngerman]{babel}
\usepackage{enumerate}
\usepackage{hyperref}
\title{\textbf{Gründüngung}}
\author{}
You can’t perform that action at this time.