Skip to content

Instantly share code, notes, and snippets.

View paolobarbolini's full-sized avatar
🦀
Update dependecies and support IPv6

Paolo Barbolini paolobarbolini

🦀
Update dependecies and support IPv6
View GitHub Profile
@paolobarbolini
paolobarbolini / webcam.sh
Last active April 28, 2023 13:40
My Logitech C920 configuration via v4l2-ctl
# v4l2-ctl -d /dev/video2 --list-ctrls-menus
v4l2-ctl -d /dev/video2 --set-ctrl=sharpness=140
v4l2-ctl -d /dev/video2 --set-ctrl=focus_auto=0
v4l2-ctl -d /dev/video2 --set-ctrl=focus_absolute=10
v4l2-ctl -d /dev/video2 --set-ctrl=power_line_frequency=1
v4l2-ctl -d /dev/video2 --set-ctrl=exposure_auto=1
v4l2-ctl -d /dev/video2 --set-ctrl=exposure_absolute=550
v4l2-ctl -d /dev/video2 --set-ctrl=contrast=130
v4l2-ctl -d /dev/video2 --set-ctrl=saturation=120
v4l2-ctl -d /dev/video2 --set-ctrl=white_balance_temperature_auto=0
@paolobarbolini
paolobarbolini / paolo565.org.conf
Created September 7, 2017 18:52
Nginx configuration for www.paolo565.org
# WARNING: This is the nginx configuration i use for https://www.paolo565.org
# You may have to do some tweaking to make it work for you
# Take a look at this post if you want to know more about my configuration
# https://www.paolo565.org/blog/creating-my-blog/
# How i generate my certificate using certbot
# certbot certonly --webroot -w /var/www/ssl-challenge/ -d paolo565.org,www.paolo565.org --must-staple
# Things i put inside the http block
# server_tokens off;
@paolobarbolini
paolobarbolini / README.md
Last active February 3, 2017 21:00
Screencloud s3 upload

Screencloud s3 upload

Bash script to upload screenshots created with the screencloud.net client to an s3 bucket.

This script is specific to my configuration (s3 bucket with static website hosting and cloudflare with https enabled)

If you don't have static website hosting or you aren't using something like cloudflare to get https you may need to modify this script to make it work with your configuration.

Setup:

  1. Download the s3-upload.sh script, place it in a folder and give it permission to execute (chmod +x s3-upload.sh)
@paolobarbolini
paolobarbolini / LobbyChatBot.java
Created September 30, 2016 18:10
Ecco cosa mi tocca fare per avere un bot che risponde automaticamente alla maggior parte delle domande sul mio server di minecraft (ip: play.craftworldmc.com)
public static void init() {
ChatProcessor.setChatBot(new LobbyChatBot());
}
private final static String[] CREATE_WORLD = new String[] {
"come creo un mondo",
"come creo un nuovo mondo",
"come creo il mondo",
"come faccio a creare un mondo",
"come faccio a creare un nuovo mondo",