Skip to content

Instantly share code, notes, and snippets.

curl -O https://gist.githubusercontent.com/monkeydri/0993f016235072546d2cc68a5cbd2726/raw/a6a22344d0b029731a71f04acd2d1a2a1ddc2383/td-agent-bit-template.conf
sudo bash -c "TIMBER_API_KEY=${TIMBER_API_KEY} TIMBER_SOURCE_ID=${TIMBER_SOURCE_ID} HOSTNAME=${HOSTNAME} envsubst < ./td-agent-bit-template.conf > /etc/td-agent-bit/td-agent-bit.conf"
sudo service td-agent-bit start
@capi1O
capi1O / test.sh
Created March 18, 2019 14:18
test to run script from gist
#!/bin/bash
echo "test completed"
@capi1O
capi1O / docker-compose-setup.sh
Created March 17, 2019 16:25
docker-compose setup on ubuntu
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@capi1O
capi1O / docker-setup.sh
Last active March 18, 2019 14:52
docker setup on ubuntu
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt install -y docker-ce
sudo usermod -aG docker $(whoami)
# logout and log back in
@capi1O
capi1O / bash-setup.sh
Created March 17, 2019 16:21
bash and ssh setup fro ubuntu
# install FR locale fr_FR.UTF-8
sudo locale-gen fr_FR.UTF-8
sudo dpkg-reconfigure locales
# zsh
sudo apt install -y zsh git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s `which zsh`
@capi1O
capi1O / goaccess.conf
Created July 5, 2018 15:31
/usr/local/etc/goaccess.conf from docker container allinurl/goaccess
######################################
# Time Format Options (required)
######################################
#
# The hour (24-hour clock) [00,23]; leading zeros are permitted but not required.
# The minute [00,59]; leading zeros are permitted but not required.
# The seconds [00,60]; leading zeros are permitted but not required.
# See `man strftime` for more details
#
# The following time format works with any of the
@capi1O
capi1O / hyper.js
Created April 20, 2018 10:08
hyper configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules
# set your username
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/______/.config/scripts/xorg/bt-auto-enable-a2dp.sh"