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
#13.04 | |
options iwlwifi bt_coex_active=0 11n_disable=1 | |
#14.04 | |
options iwlwifi 11n_disable=8 | |
#11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint) | |
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 | |
# Prints information about the Java threads that consumes most of the CPU | |
# Derived from the information given in the blog entry at | |
# | |
# http://nurkiewicz.blogspot.be/2012/08/which-java-thread-consumes-my-cpu.html | |
# | |
# Changelog: | |
# | |
# - Removed the `top', `perl', and `grep' dependencies. |
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
def sub1 | |
i=0 | |
while | |
i = rand(10) + i | |
#puts "In thread" | |
end | |
end | |
th = Thread.new{sub1} | |
th1 = Thread.new{sub1} |
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
mvn clean javadoc:jar source:jar deploy | |
bin/catalina.sh jpda start |
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 bash | |
set -o errexit | |
## Functions | |
function usage(){ | |
echo "Usage: $0 -d <domain> [-t <time_in_days>]" | |
} |
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/python | |
# Forked from: | |
# https://github.com/c4rlo/Subversion-scripts/blob/master/svndiff_helper | |
# | |
# The easiest way to use this script is by setting | |
# diff-cmd = svndiff_helper | |
# in section [helpers] in your ~/.subversion/config. | |
import sys, re, subprocess, os, os.path |
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
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#define RW_UGO (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH| S_IWOTH) | |
int | |
main(int argc, char **argv, char **env) { |
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
grep -v “^$” filename > newfilename | |
#Remove special characters from a file | |
cat "$f" | tr -dc ' [:alnum:]\n\r' | tr '[:upper:]' '[:lower:]' | |
lsof -P -i -n | |
tcpdump -i eth0 host 192.168.1.1 |
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 | |
#git clone https://android.googlesource.com/platform/external/openssl | |
for ANDROID_TAG in $(git ls-remote --tags| colrm 1 48| grep -v "\^{}") | |
do | |
git checkout "$ANDROID_TAG" | |
OPENSSL_V="$(cat openssl.version)" | |
echo "[$OPENSSL_V] - [$ANDROID_TAG]" >> openssl.versions | |
done |
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
Status between branches | |
git diff --name-status master..branch_name | |
Merging while ignoring some files | |
git merge --no-commit --no-ff branch_name | |
git reset /path/to/ignored | |
Tags |