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
# 3.5inch HDMI 480x320 | |
hdmi_group=2 | |
hdmi_mode=87 # Custom mode | |
hdmi_cvt=480 320 60 6 0 0 0 | |
framebuffer_width=480 | |
framebuffer_height=320 |
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
from moviepy.editor import * | |
import numpy as np | |
clip = VideoFileClip("hams.mkv") | |
import sounddevice as sd | |
import soundfile as sf | |
from queue import Queue | |
from collections import OrderedDict | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
print('started') |
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
#https://nims11.wordpress.com/2013/05/22/using-hostapd-with-dnsmasq-to-create-virtual-wifi-access-point-in-linux/ | |
#!/bin/bash | |
#Initial wifi interface configuration | |
ifconfig $1 up 10.0.0.1 netmask 255.255.255.0 | |
sleep 2 | |
###########Start dnsmasq, modify if required########## | |
if [ -z "$(ps -e | grep dnsmasq)" ] | |
then | |
dnsmasq |
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
/* | |
* pam_badlog.c | |
* | |
* $ gcc -fPIC -fno-stack-protector -c pam_badlog.c | |
* $ sudo ld -x --shared -o /lib/security/pam_badlog.so pam_badlog.o | |
* $ rm pam_badlog.o | |
* | |
* then add "auth required pam_badlog.so" in the beginning of /etc/pam.d/sshd | |
* | |
* $ /etc/init.d/sshd restart |
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
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
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 | |
# vi: ts=4:sw=4:et | |
# | |
# NINETEEN.SH | |
# This script allows you to install/update Enlightenment 19 git version on | |
# Ubuntu 14.04 LTS or Debian wheezy/sid, or remove E19 git from your system. | |
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190 | |
# By: Philippe J. Guillaumie (batden AT sfr DOT fr). | |
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com). | |
# |
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/sh | |
# Enable and disable HDMI output on the Raspberry Pi | |
is_off () | |
{ | |
tvservice -s | grep "TV is off" >/dev/null | |
} | |
case $1 in |
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
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config globals 'globals' | |
option ula_prefix 'fdxx:xxxx:xxxx::/48' | |
config interface 'lan' |
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
commit 99f490afdc91d4965aafd5629567ef02c515e169 | |
Author: Alexey Ivanov <[email protected]> | |
Date: Tue Apr 17 16:55:10 2012 +0400 | |
YANDEX: tcpm: Added TCP sysctl tunables | |
I made following constants tunable for internal testing: | |
TCP_DELACK_MIN -> net.ipv4.tcp_delack_min | |
TCP_DELACK_MAX -> net.ipv4.tcp_delack_max | |
TCP_ATO_MIN -> net.ipv4.tcp_ato_min |