Skip to content

Instantly share code, notes, and snippets.

View WindomZ's full-sized avatar
💭
I may be slow to respond.

Windom.Z WindomZ

💭
I may be slow to respond.
View GitHub Profile
@WindomZ
WindomZ / apt-get proxy
Last active June 20, 2017 07:57
how to install packages with apt-get on a system connected via proxy
sudo vim /etc/apt/apt.conf
# The contents were:
Acquire::http::proxy "http://<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<proxy>:<port>/";
Acquire::https::proxy "https://<proxy>:<port>/";
@WindomZ
WindomZ / golang-cross-compile
Created August 25, 2017 04:41
golang cross compile
# linux 64bit
$ GOOS=linux GOARCH=amd64 go build
# with the -o option to specify the name of the generated binary file
$ GOOS=linux GOARCH=amd64 go build -o app.linux
# linux 32bit
$ GOOS=linux GOARCH=386 go build
# windows 64bit
$ GOOS=windows GOARCH=amd64 go build
@WindomZ
WindomZ / raspberry_golang_1.98
Created February 4, 2018 13:45
Install Golang 1.9.3 on Raspberry Pi 3
wget https://dl.google.com/go/go1.9.3.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.3.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
@WindomZ
WindomZ / upgrade_filezilla3.sh
Last active May 28, 2019 08:33
Ubuntu upgrade FileZilla3
#!/usr/bin/env bash
cd FileZilla3 # enter FileZilla3 folder
sudo cp -arvx * /usr # replace with upgrade file
sudo chown root:root /usr/lib
@WindomZ
WindomZ / switch_windows_with_scroll_wheel_on_ubuntu_dock.sh
Last active April 8, 2022 08:50
Switch windows with scroll wheel on Ubuntu Dock
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'