Skip to content

Instantly share code, notes, and snippets.

View geenloop's full-sized avatar
🏠
Working from home

GeenLoop geenloop

🏠
Working from home
View GitHub Profile
@geenloop
geenloop / pulse_audio.sh
Last active February 27, 2019 09:11
LINUX | Enable Dual/multi Audio Playback
sudo apt install -y paprefs && paprefs
@geenloop
geenloop / behringer.cmd.pl-1.custom.js
Created March 3, 2019 00:43 — forked from ademilsonfp/behringer.cmd.pl-1.custom.js
Behringer CMD PL-1 / Mixxx controller mapping
function myCustomDeck(channel, deck) {
var forceScratch = false;
// CONTROLLER SETUP
deck.e1.setup = deck.e1.release = encoderWiper(deck.e1);
deck.e2.setup = deck.e2.release = encoderWiper(deck.e2);
deck.e3.setup = deck.e3.release = encoderWiper(deck.e3);
deck.e4.setup = deck.e4.release = encoderWiper(deck.e4);
@geenloop
geenloop / random_pulse_led_effect.ino
Created April 27, 2019 09:22
C++, Arduino, LED pulse effect everytime different one
int ledPin = 11;
float sinVal;
int ledVal;
void setup(){
pinMode(ledPin, OUTPUT);
}
void loop(){
for(int x=0; x<180; x++) {

Keybase proof

I hereby claim:

  • I am geenloop on github.
  • I am geenloop (https://keybase.io/geenloop) on keybase.
  • I have a public key ASAMA-hgbsQX6TTw630X3kW8t4dLxO1ARhIkbJj8XVUTswo

To claim this, I am signing this object:

@geenloop
geenloop / apt_fix.bash
Created April 27, 2019 10:30
-bash: add-apt-repository: command not found
sudo apt-get install software-properties-common
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install python-certbot-apache
certbot --apache -d example.com -d www.example.com
certbot renew --dry-run
@geenloop
geenloop / perl_locale_fix.bash
Last active April 27, 2019 12:28
perl: warning: Setting locale failed.
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
@geenloop
geenloop / .rtorrent.rc
Last active April 27, 2019 12:38
Settings for rTorrent
scgi_port = 127.0.0.1:5000
directory = /home/rtorrent/torrents
session = /home/rtorrent/.rtorrent.session
min_peers = 1
max_peers = 99
port_range = 50020-63025
port_random = yes
#dht = enable
dht_port = 6881
encryption = allow_incoming,try_outgoing,enable_retry
@geenloop
geenloop / seedbox.bash
Created April 27, 2019 13:15
Linux Seedbox made from rTorrent & ruTorrent
apt-get update
apt-get install -y rtorrent screen php php-geoip php7.0-cli php7.0-json php7.0-curl php7.0-cgi php7.0-mbstring libapache2-mod-php libapache2-mod-scgi apache2 unrar unzip ffmpeg mediainfo curl sqlite3 git
// get sourcecode of ruTorrent https://github.com/Novik/ruTorrent/releases
// adduser <name> for rtorrent service
// import settings https://gist.github.com/geenloop/bb4a8400271c29f8acff6037634c031d
chown -R rtorrent:www-data ruTorrent-3.9/ && chmod -R 770 ruTorrent-3.9/
mkdir /home/rtorrent/.rtorrent.session
@geenloop
geenloop / apache_passwd.bash
Created April 28, 2019 17:06
Password Authentication with Apache
apt-get update
apt-get install apache2-utils
htpasswd -c /etc/apache2/.htpasswd user
nano /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html