Skip to content

Instantly share code, notes, and snippets.

/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._arrayeach
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._basefor
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludes
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludeswith
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._cachehas
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._setcache/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash.
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._arrayeach
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._basefor
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludes
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludeswith
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._cachehas
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._setcache/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash.
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._arrayeach
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._basefor
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludes
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludeswith
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._cachehas
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._setcache/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash.
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._arrayeach
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._basefor
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._stack
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludes
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._arrayincludeswith
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._cachehas
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash._setcache/node_modules/lodash._mapcache
- [email protected] node_modules/npm/node_modules/lodash.union/node_modules/lodash.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
@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 && \
"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 / 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
from contextlib import contextmanager
import io
import os
import shutil
import sys
import tempfile
import time
class Timer(object):