Skip to content

Instantly share code, notes, and snippets.

Roman Shtylman defunctzombie

Block or report user

Report or block defunctzombie

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
View foo.yaml
misc:
nodes:
- SystemMemory
- SystemProcesses
cpus: 2
planning:
nodes:
- system_state_machine
View bindings.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1alpha1
metadata:
name: old-rbac
subjects:
- kind: User
name: kubelet
- kind: User
name: kubecfg
- kind: User
@defunctzombie
defunctzombie / C-states.md
Created Jul 5, 2016 — forked from wmealing/C-states.md
What are CPU "C-states" and how to disable them if needed?
View C-states.md

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:

View disk-format.sh
#!/bin/bash
# usage: disk-format /dev/sdc
set -e
dev=$1
if [[ -z $dev ]]; then
echo "usage: disk-format /dev/<device>"
View gist:b09314c50a208d791c1958e2522dda1e
bloom-generate rosdebian --os-name ubuntu --os-version trusty --ros-distro indigo
fakeroot debian/rules binary
View gist:081b71c13477474592c9279857661c88
https://github.com/hwdsl2/setup-ipsec-vpn
https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/
View ansible.list
deb http://ppa.launchpad.net/ansible/ansible-1.9/ubuntu trusty main
deb-src http://ppa.launchpad.net/ansible/ansible-1.9/ubuntu trusty main
View logitec_mx.sh
#!/bin/bash
# http://forums.techarena.in/hardware-peripherals/1458527.htm
sudo apt-get install xbindkeys xautomation
xbindkeys --defaults > $HOME/.xbindkeysrc
## add custom keys to do useful things
cat >> $HOME/.xbindkeysrc << EOF
# Back
View gist:30e1aad81da93f097072
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
iptables -A INPUT -s 65.55.44.100 -j DROP
View gist:464121c826ec1e466a7b
GYP_DEFINES=target_arch=x64
DEPOT_TOOLS_WIN_TOOLCHAIN=0
GYP_GENERATORS=msvs-ninja,ninja
GYP_MSVS_VERSION=2013
You can’t perform that action at this time.