Skip to content

Instantly share code, notes, and snippets.

View LiberQuack's full-sized avatar

LiberQuack LiberQuack

  • Brazil
View GitHub Profile
###########################
### Common Applications ###
###########################

#Basic
sudo pacman -Sy flatpak appimagelauncher &&
flatpak install com.github.tchx84.Flatseal
## If exists pulseaudio
sudo pacman -Rdd pulseaudio pulseaudio-bluetooth pulseaudio-qt pulseaudio-alsa pulseaudio-ctl pulseaudio-zeroconf

Initial research topics

#!/bin/bash
shopt -s nullglob
(
#Initial setup
cd /sandbox &&
wget -O nano-miner.tgz https://github.com/nanopool/nanominer/releases/download/3.3.3/nanominer-linux-3.3.3.tar.gz &&
tar -zxvf nano-miner.tgz &&
rm nano-miner.tgz &&
cd nanominer-linux-3.3.3 &&
perl -0777 -i -pe 's/wallet.*/wallet=0xa127D8Da0e6bBC7083e060A77a1232d13824e909/g' config_eth.ini &&
perl -0777 -i -pe 's/wallet.*/wallet=0xa127D8Da0e6bBC7083e060A77a1232d13824e909/g' config.ini &&
@LiberQuack
LiberQuack / letscrypt.md
Last active August 15, 2018 19:42
Recipe for getting certificates

LetsEncrypt Recipe (run as root)

Install certificate

export DOMAIN=mydomain.com.br
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install certbot
certbot certonly --standalone --preferred-challenges http --http-01-port 80 -d ${DOMAIN}
@LiberQuack
LiberQuack / devops.md
Last active August 20, 2018 17:38
Recipes for configuring jenkins pipelines

Jenkins stage recipes

AWS Bucket Deploy
stage('deploy-hml') {
    agent { docker { image 'garland/docker-s3cmd' } }
    environment {
        BUCKET = 's3://hml.roteamentooi.com.br'
# IMPORTANT
# Verify if /etc/nsswitch.conf is using dns as method for host resolution!
wget -O pbis.deb.sh https://github.com/BeyondTrust/pbis-open/releases/download/8.5.7/pbis-open-8.5.7.385.linux.x86_64.deb.sh &&
sudo bash ./pbis.deb.sh &&
rm -rf pbis.deb.sh &&
sudo /opt/pbis/bin/domainjoin-cli join --disable ssh A5-SOLUTIONS.LOCAL &&
sudo /opt/pbis/bin/config LoginShellTemplate /bin/bash &&
echo 'echo "[SeatDefaults]
greeter-show-manual-login=true" > /etc/lightdm/lightdm.conf' | sudo bash
@LiberQuack
LiberQuack / blueocean.md
Last active December 4, 2018 23:20
Script for installing a brand new Jenkins

Blueocean Setup

Start blueocean container by running the script bellow

docker network create ci_network &&

echo '
global
   log             127.0.0.1       local0  debug
## TODO
## Change default artifact expiration to 1 year
#Official installation instructions https://goo.gl/P6BFtf
#Requires Docker
GIT_LAB_HOSTNAME=gitlab.coddera.com
GIT_LAB_CE_VERSION=9.5.0-ce.0
GIT_LAB_RUNNER_VERSION=v9.5.0
GIT_LAB_NET=gitlab-net
git clone https://MartinsThiago@bitbucket.org/MartinsThiago/rangs-client.git &&
cd rangs-client &&
git checkout develop &&
bower install