by NeQuissimus
nano ~/.config/zoomus.conf
Change autoScale=true
to autoScale=false
/system script add name="Squid_Blacklist" source="/tool fetch url=\"http://www.squidblacklist.org/downloads/tik-dns-ads.rsc\" dst-path=ads.rsc; /import file-name=ads.rsc;"
/system scheduler add comment="Squid_Blacklist" interval=1d name="DownloadSquidBlacklist" on-event=Squid_Blacklist start-date=jan/01/1970 start-time=20:00:00
github.com,192.30.252.*,192.30.253.*,192.30.254.*,192.30.255.* ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
zcat /proc/config.gz
SELECT CONCAT(table_schema, ".", table_name),
CONCAT(ROUND(table_rows / 1000000, 2), "M") rows,
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), "G") DATA,
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), "G") idx,
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), "G") total_size,
ROUND(index_length / data_length, 2) idxfrac
FROM information_schema.TABLES
ORDER BY data_length + index_length DESC
LIMIT 10;
screen /dev/ttyUSB0 9600
In Jenkins job:
export BUILD_ID="dontKillMe /usr/bin/vagrant"
See https://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller
export JAVA_HOME="${$(readlink -e $(type -p java))%*/bin/java}"
setxkbmap -option ctrl:nocaps
$ export N=100; for i in $(git log --abbrev-commit --format=format:'%h' --all ${FILE}); do N=$((N+1)); git diff "${i}^..${i}" > ${N}-${i}.patch; done
$ mvn test -Dtest=com.nequissimus.*Test
$ cat /proc/${PID}/environ
$ vim-cmd vmsvc/getallvms
VMID is the first column
$ vim-cmd vmsvc/snapshot.get ${VMID}
Find snapshot ID
$ vim-cmd vmsvc/snapshot.revert ${VMID} ${SNAPID} false
$ adb root
$ mkdir ~/Downloads/instagram
$ adb pull /data/data/com.instagram.android/cache ~/Downloads/instagram
$ find ~/Downloads/instagram -name '*.0' -exec mv {} {}.jpg \;
$ open ~/Downloads/instagram
$ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-3770S CPU @ 3.10GHz
/Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/Info.plist
JVMVersion
1.6*
to 1.8*
$ od -x ~/dev/Test.class | head -1
0000000 feca beba 0000 3200 4200 0007 073d 3e00
The 3200 signals JDK 1.6, 3100 would be 1.5 etc.
find /var/log/ -name "*log" -type f -follow | xargs tail -n 0 -f | grep -v '^$'
function setjdk() {
if [ $# -ne 0 ]; then
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin'
if [ -n "${JAVA_HOME+x}" ]; then
removeFromPath $JAVA_HOME
fi
export JAVA_HOME=`/usr/libexec/java_home -v $@`
export PATH=$JAVA_HOME/bin:$PATH
fi
}
function removeFromPath() {
export PATH="$(echo "$PATH" | sed -E -e "s;:$1;;" -e "s;$1:?;;")"
}
setjdk 1.9
export MYSQL_PS1="\u@\d> "
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git lg
echo "Test" | socat -u STDIO UDP-DATAGRAM:127.0.0.1:514
# First column: Lines unique to file1
# Second column: Lines unique to file2
# Third column: Lines common to both files
$ comm file1 file2
# Hide all columns (1, 2 & 3; which makes no sense!)
$ comm -123 file1 file2
# Only show common lines
$ comm -12 file1 file2
svn merge -c -REVISION .
~/.snmp/snmptrapd.conf
disableAuthorization yes
com2sec local 127.0.0.1/32 public
com2sec local 10.30.68.0/24 public
view all included .1
Start receiver
sudo snmptrapd -Lf ~/.snmp/output.txt
Send sample trap
sudo snmptrap -v 2c -c public -m ALL localhost "" SNMPv2-MIB::sysLocation.0 s s "Hello World"
<!-- The following should be saved in C:\Windows\System32\WindowsPowershell\v1.0\ (or the correct path to Windows Powershell)
as a file named "powershell.exe.config" -->
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>
function Get-FrameworkDirectory {
$([System.Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory())
}
alias cp='rsync --progress'
ssh-keygen -R HOST
my.cnf.51
log=/var/log/mysql/mysql.log
my.cnf.56
general_log=true
general_log_file=/var/log/mysql/mysql.log
touch /Volumes/MyDrive/.metadata_never_index
List
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 'select LSQuarantineDataURLString from LSQuarantineEvent'
Empty
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEvents* 'delete from LSQuarantineEvent'
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
Add
ipfw pipe 1 config bw 100KB
ipfw add 1 pipe 1 src-port any
Remove
ipfw delete 00001
/Library/Application\ Support/VMware\ Fusion/vmrun -T fusion start /Volumes/VMs/_Hadoop/Hadoop\ Master.vmwarevm/Hadoop\ Master.vmx nogui
chflags [nohidden|hidden] ~/Library
mstsc /v:123.123.123.123 /admin
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock
sudo mdutil -E /
sudo periodic daily weekly monthly