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 | |
for proc in $(find /proc -maxdepth 1 -regex '/proc/[0-9]+'); do | |
printf "%2d %5d %s\n" \ | |
"$(cat $proc/oom_score)" \ | |
"$(basename $proc)" \ | |
"$(cat $proc/cmdline | tr '\0' ' ' | head -c 50)" | |
done 2>/dev/null | sort -nr | head -n 10 |
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
# Maintainer: Roan Huang <pichuang@cs.nctu.edu.tw> | |
Automating mysql_secure_installation | |
In this patch, MySQL default password is "ARCHLNMP" | |
default password is NOT safe to your system, Please use | |
/usr/bin/mysqladmin -u root -p'ARCHLNMP' password 'YOUR_NEW_PASSWORD' |
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
#Auto load ssh_key & ssh-agent | |
#Add ~/.bashrc | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` > /dev/null 2>&1 | |
ls ~/.ssh/ |grep -vE '(.pub|authorized_keys|known_hosts)'| xargs -i ssh-add ~/.ssh/{} > /dev/null 2>&1 | |
fi |
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 | |
VERSION=$1 | |
if [ "python2" == "$VERSION" ] || [ "python3" == "$VERSION" ] | |
then | |
cd /usr/bin/ | |
ln -sfn $VERSION python | |
echo "switch to $VERSION" | |
else |
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
#Signed-off-by: Tobias Steinicke <tobias.steinicke at inet.tu-berlin.de> | |
#https://lists.openwrt.org/pipermail/openwrt-devel/2014-March/024286.html | |
--- a/package/libs/toolchain/Makefile 2014-07-01 16:33:40.734903000 +0800 | |
+++ b/package/libs/toolchain/Makefile 2014-07-01 15:02:10.730903000 +0800 | |
@@ -52,6 +52,31 @@ | |
endmenu | |
endef | |
+define Package/libatomic |
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
@echo off | |
whoami /groups |find "S-1-16-12288" | |
if %errorlevel%==1 goto nouac | |
bcdedit.exe /enum %GUID_ORIG% /v |find "win7.vhd" | |
if %errorlevel%==1 goto vhd | |
bcdedit /set %GUID_ORIG% device vhd=[D:]\diff1.vhd | |
bcdedit /set %GUID_ORIG% osdevice vhd=[D:]\diff1.vhd | |
bcdedit /default %GUID% | |
bcdedit /export d:\boot\BCDMALLI.bcd | |
attrib -r d:\tausta.jpg |
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
PORTNAME= php5 | |
PORTVERSION= 0.5 | |
PORTREVISION= 1 | |
CATEGORIES= cs | |
MASTER_SITES= # none | |
PKGNAMESUFFIX= -extensions | |
DISTFILES= # none | |
EXTRACT_ONLY= # none |
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
{"name": "Open_vSwitch", | |
"version": "6.11.3", | |
"cksum": "2234602985 17310", | |
"tables": { | |
"Open_vSwitch": { | |
"columns": { | |
"bridges": { | |
"type": {"key": {"type": "uuid", | |
"refTable": "Bridge"}, | |
"min": 0, "max": "unlimited"}}, |
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 -ev | |
# Reference: https://github.com/mininet/mininet/wiki/Installing-new-version-of-Open-vSwitch | |
# How to test: ovs-vsctl -V | |
# Check permission | |
test $(id -u) -ne 0 && echo "This script must be run as root" && exit 0 | |
#Remove old version ovs | |
aptitude remove openvswitch-common openvswitch-datapath-dkms openvswitch-controller openvswitch-pki openvswitch-switch -y |