This file contains hidden or 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
(Get-Process chrome | Measure-Object WorkingSet -sum).sum | |
(Get-Process firefox | Measure-Object WorkingSet -sum).sum |
This file contains hidden or 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/local/bin/bash | |
tar=/usr/bin/tar | |
${tar} --exclude backups -czf file_`date +%F_%H%M%S`.tar.gz /path/something | |
# tar -cJf file_`date +%F_%H%M%S`.tar.xz /path/something |
This file contains hidden or 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
rsync -av --delete -e "ssh -p2222" <src> <dst> |
This file contains hidden or 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 | |
# .bashrc | |
# Unprivileged [green] | |
export PS1='\A[\l]\[\033[0m\033[32m\]\u\[\033[1m\033[37m\]@\[\033[0m\033[32m\]\h:\[\033[0m\033[37m\]\w>' | |
# Privileged [red] | |
# PS1='\A[\l]\[\e[0m\e[1;31m\]\u\[\e[1m\e[37m\]@\[\e[0m\e[32m\]\h:\[\e[0m\e[37m\]\w>' |
This file contains hidden or 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
# You can use /etc/make.conf to control the options used to compile software | |
# on this system. Example entries are in | |
# /usr/share/examples/etc/make.conf. | |
#CFLAGS+= -mtune=opteron-sse3 | |
KERNCONF=superserver | |
#OPTIONS_SET=IPV6 | |
#OPTIONS_UNSET=X11 |
This file contains hidden or 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
# | |
# https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-a-shell-script | |
dig +short myip.opendns.com @resolver1.opendns.com | |
curl https://api.my-ip.io/ip |
This file contains hidden or 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 GENERIC | |
ident superserver | |
nomakeoptions DEBUG | |
nodevice fdc | |
nodevice cbb # cardbus (yenta) bridge |
This file contains hidden or 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
ping -c1 whoami.fluffcomputing.com | |
ping -c1 whoami.akamai.net |