All of the following information is based on go version go1.8.3 darwin/amd64.
(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)
androiddarwin
| # Cleanup old alternatives | |
| update-alternatives --remove-all cc | |
| update-alternatives --remove-all c++ | |
| update-alternatives --remove-all gcc | |
| update-alternatives --remove-all g++ | |
| update-alternatives --remove-all clang | |
| update-alternatives --remove-all clang++ | |
| update-alternatives --remove-all icc | |
| update-alternatives --remove-all icc++ |
This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains.
Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.
There are 3 files
gcc-alternatives.sh installs GCC versions 5/6/7 and sets up alternatives for gcc/g++/cpp/gfortran.llvm-clang-alternatives.sh installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang and clang++.cc-alternatives.sh sets up alternatives for the cc, cxx, and the ld commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/bin/bash | |
| set -xe | |
| curl -sL https://downloads.lede-project.org/snapshots/targets/x86/generic/openwrt-x86-generic-generic-rootfs.tar.gz | docker import - katta/openwrt-rootfs:lede-latest | |
| docker push katta/openwrt-rootfs:lede-latest | |
| curl -sL http://archive.openwrt.org/snapshots/trunk/x86/generic/openwrt-x86-generic-generic-rootfs.tar.gz | docker import - katta/openwrt-rootfs:latest | |
| docker push katta/openwrt-rootfs:latest | |
| curl -sL http://downloads.openwrt.org/releases/18.06.1/targets/x86/generic/openwrt-18.06.1-x86-generic-generic-rootfs.tar.gz | docker import - katta/openwrt-rootfs:18.06.1 | |
| docker push katta/openwrt-rootfs:18.06.1 |
| ifeq ($(KERNELRELEASE),) | |
| KERNELDIR ?= /lib/modules/$(shell uname -r)/build | |
| PWD := $(shell pwd) | |
| modules: | |
| $(MAKE) -C $(KERNELDIR) M=$(PWD) modules EXTRA_CFLAGS="-g -DDEBUG" | |
| modules_install: | |
| $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install |
| #!/bin/sh | |
| if [ "$#" -ne 1 ]; then | |
| echo "Example: ${0} [email protected]" | |
| exit 1 | |
| fi | |
| cat ~/.ssh/id_rsa.pub | ssh ${1} "cat >> /etc/dropbear/authorized_keys && chmod 0600 /etc/dropbear/authorized_keys && chmod 0700 /etc/dropbear" |
| #!/bin/bash -x | |
| ## Node.js for Raspberry Pi 2 Packaging Script | |
| ## ========================================= | |
| ## Use like this: | |
| ## ./buildnode.sh <node_tarball_version> | |
| clean () { | |
| rm -rvf node-v$1-armhf/ | |
| #!/bin/bash -x | |
| ## Node.js for Raspberry Pi armhf Packaging Script | |
| ## ========================================= | |
| ## Use like this: | |
| ## ./buildnode.sh <node_tarball_version> | |
| WORKDIR=$PWD | |
| nodever=$(echo "${1}" | sed s/[.].*$//) |
| #!/usr/bin/env bash | |
| # TODO: case user conf; rm `sleep` shenaynays | |
| # Logs | |
| logTime=$(date +%Y-%m-%d:%H:%M:%S) | |
| uninstallLog="/tmp/$(basename "$0" | cut -d. -f1)_$logTime.log" | |
| exec &> >(tee -a "$uninstallLog") | |
| # Current user |