Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am zas on github.
  • I am zas (https://keybase.io/zas) on keybase.
  • I have a public key ASAtsSSU0REPW2-TsW-_Uz64u2tcN3WwUvtg4nXHg-yODAo

To claim this, I am signing this object:

@zas
zas / http.py
Created February 6, 2017 21:36
#!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from subprocess import Popen, PIPE
import argparse
import json
import os
import shlex
import signal
import sys
from contextlib import contextmanager
import io
import os
import shutil
import sys
import tempfile
import time
class Timer(object):
@zas
zas / sysctl.conf
Created November 7, 2016 21:30
sysctl
kernel.printk = 3 4 1 3
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 1
net.ipv4.conf.all.arp_filter = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.ip_nonlocal_bind = 1
net.netfilter.nf_conntrack_max = 262144
net.netfilter.nf_conntrack_generic_timeout = 120
net.netfilter.nf_conntrack_tcp_timeout_close = 10
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60
"Sens Factor =-5.806dB, SERNO: 1400858"
4.6758 -3.9233 23.59
5.099 -3.6242 24.37
5.5605 -3.3087 25.03
6.0638 -2.9919 25.14
6.6126 -2.6777 24.72
7.2111 -2.3646 24.19
7.8637 -2.0523 23.97
8.5755 -1.7464 23.78
9.3516 -1.452 23.08
@zas
zas / install_intelr_graphic_linux_firmware.sh
Created September 9, 2016 00:06
Fix "W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo" (Ubuntu 16.04, kernel 4.4)
#!/bin/bash
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \
@zas
zas / set_tz_utc.sh
Created September 9, 2016 00:04
Set timezone to UTC on Ubuntu 16.04 (xenial)
#!/bin/bash
sudo timedatectl set-timezone Etc/UTC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- lodash._arrayeach@3.0.0 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._arrayeach
- lodash._basefor@3.0.3 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._basefor
- lodash._mapcache@4.0.0 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack/node_modules/lodash._mapcache
- lodash._stack@4.0.1 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack
- lodash._arrayincludes@4.0.0 node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludes
- lodash._arrayincludeswith@4.0.0 node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludeswith
- lodash._cachehas@4.0.0 node_modules/npm/node_modules/lodash.union/node_modules/lodash._cachehas
- lodash._mapcache@4.0.0 node_modules/npm/node_modules/lodash.union/node_modules/lodash._setcache/node_modules/lodash._mapcache
- lodash._setcache@4.0.1 node_modules/npm/node_modules/lodash.union/node_modules/lodash.