scutil --set ComputerName "name"
scutil --set HostName "name"
scutil --set LocalHostName "name"
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
sudo apt-get install git libcurl4-openssl-dev build-essential libjansson-dev autotools-dev automake | |
git clone https://github.com/hyc/cpuminer-multi | |
cd cpuminer-multi | |
./autogen.sh | |
CFLAGS="-march=native" ./configure | |
# or without AES-NI | |
CFLAGS="-march=native" ./configure --disable-aes-ni | |
make |
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
apt-get update | |
apt-get install libcurl4-openssl-dev git | |
apt-get install build-essential | |
apt-get install autotools-dev autoconf | |
apt-get install libcurl3 libcurl4-gnutls-dev | |
mkdir ~/miner | |
cd ~/miner | |
git clone https://github.com/pooler/cpuminer | |
cd cpuminer |
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
pip install speedtest-cli | |
cd ~ | |
mkdir scripts | |
cd scripts | |
mkdir speedtest | |
cd speedtest | |
git clone https://github.com/HenrikBengtsson/speedtest-cli-extras.git | |
mkdir results | |
# create header | |
/home/pi/scripts/speedtest/speedtest-cli-extras/bin/speedtest-csv --header > /home/pi/scripts/speedtest/results/speedtest_stats.tsv |
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
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
docker volume rm $(docker volume ls |awk '{print $2}') | |
rm -rf ~/Library/Containers/com.docker.docker/Data/* |
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
{ | |
"Seti_no_bar_undertabs": true, | |
"Seti_tabs_small": true, | |
"bold_folder_labels": true, | |
"caret_extra_width": 2, | |
"color_scheme": "Packages/Seti_UI/Scheme/Seti.tmTheme", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "all", |
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
var getSiblings = function (elem) { | |
var n = elem.parentNode.firstChild; | |
var r = []; | |
for (; n; n = n.nextSibling) { | |
if (n.nodeType === 1 && n !== elem) { | |
r.push(n); | |
} | |
} | |
return r; | |
}; |
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 | |
parse_git_branch () { | |
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)# (git::\1)#' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Solarized (dark) (SL).tmTheme", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"draw_minimap_border": true, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ |
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 | |
parse_build_properties_file() { | |
cat build.properties 2>/dev/null | grep application.name | awk -F = '{print " (app::"$2")" }' | |
} | |
# PATH | |
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(parse_build_properties_file)\$ " |
NewerOlder