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 "export TERM=xterm-color" | sudo tee -a /etc/profile | |
source /etc/profile | |
logout |
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
find . -type f | xargs grep "some string" -il |
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 cp /etc/apt/sources.list /etc/apt/sources.list.bak | |
sudo sed -i 's/security.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list | |
sudo sed -i 's/us.archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list | |
sudo apt update | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get -y update | |
sudo apt-get -y install docker-ce | |
sudo bash -c 'cat << EOF > /etc/docker/daemon.json |
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
Remove-Item (Get-PSReadlineOption).HistorySavePath |
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
git clone https://github.com/DaveGamble/cJSON.git | |
cd cJSON | |
make CC=mips-openwrt-linux-gcc |
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
git clone https://github.com/eclipse/mosquitto.git | |
cd mosquitto | |
make CC=mips-openwrt-linux-gcc CXX=mips-openwrt-linux-g++ WITH_STATIC_LIBRARIES=yes WITH_TLS=no -j8 |
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 run -d -p 9000:9000 \ | |
--restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
--name portainer \ | |
docker.io/portainer/portainer | |
docker network create influxdb | |
docker run -d -p 8086:8086 --name=influxdb --net=influxdb --restart=always influxdb |
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
package drivers | |
import ( | |
"encoding/binary" | |
"encoding/hex" | |
"github.com/shopspring/decimal" | |
"math" | |
"strings" | |
) |
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 install -y cmake gcc clang gdb valgrind build-essential |
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 | |
#proxy for wsl | |
CMD=$1 | |
echo "Choose:" $CMD | |
set() | |
{ | |
git config --global http.proxy "http://192.168.123.63:7891" | |
git config --global https.proxy "http://192.168.123.63:7891" | |
export http_proxy=http://192.168.123.63:7891 |
NewerOlder