Skip to content

Instantly share code, notes, and snippets.

server {
server_name <name>.cumvreau.eu;
location / {
proxy_pass <adress>;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header X-Frame-Options;
@skyway22
skyway22 / docker-compose.yml
Created May 31, 2023 06:52
Snippet-box RaspberryPi
version: '3'
services:
snippet-box:
image: pawelmalak/snippet-box:arm
container_name: snippet-box
volumes:
- ./data:/app/data
ports:
- 5000:5000
restart: unless-stopped
@skyway22
skyway22 / details.md
Last active May 26, 2023 23:52
Lychee error

This is from inside the container..

root@02948b216d7b:/var/www/html/Lychee# cat /etc/php/8.2/fpm/php.ini | grep upload_max
upload_max_filesize = 2M

so the mounted nginx file does not overwrite the php parameter..

In portainer i get this log:

@skyway22
skyway22 / gist:66bc10bcbc3248ae48fbd168c760448d
Created November 15, 2022 18:13 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@skyway22
skyway22 / rtorrent.rc
Created December 2, 2020 15:01 — forked from frengky/rtorrent.rc
Setup systemd with the rtorrent service
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 300
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 1
@skyway22
skyway22 / .bash_aliases
Last active October 4, 2021 16:48 — forked from oblique63/.bash_aliases
Bash Aliases for Ubuntu
#----{ Aliases for Ubuntu: }--------------------------------------------------
# Admin
alias update="sudo apt update ; sudo apt -ZWry safe-upgrade && sudo apt -ZWry --purge-unused clean"
alias sources="sudo nano /etc/apt/sources.list"
alias install="sudo apt -ZWry install"
alias uninstall="sudo apt -ZWry remove"
alias pkgsearch="apt search"
alias installed="dpkg --get-selections | grep"
alias add-repo="sudo add-apt-repository"
alias app="apropos"
@skyway22
skyway22 / .rtorrent.rc
Last active September 30, 2017 18:52
Osmc stuff
directory = /mnt/wd/movies
session = /home/rock64/.rtorrent/.session
# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=20240M
port_range = 51413-51413
port_random = no
encryption = allow_incoming,enable_retry,prefer_plaintext
peer_exchange = no
dht = disable
scgi_port = 127.0.0.1:5000
@skyway22
skyway22 / .bash_aliases
Last active April 29, 2024 15:18
Lenovo bash-aliases
### System
alias update="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoclean && sudo apt-get autoremove"
alias paste="nc termbin.com 9999"
alias aliases="cat ~/.bash_aliases"
alias ra="source ~/.bash_aliases"
alias ea="sudo vi ~/.bash_aliases ; source ~/.bash_aliases"
# Screen
alias sl="screen --list"
### SSH
@skyway22
skyway22 / .bash_aliases
Created August 5, 2017 15:21
Raspberry Pi
alias li="screen -r irssi"
alias rosu="sudo nano /sys/class/leds/led1/brightness"
alias temp="/opt/vc/bin/vcgencmd measure_temp"
alias kstop="sudo systemctl stop mediacenter"
alias kstart="sudo systemctl start mediacenter"
alias paste="nc termbin.com 9999"
export LC_ALL="en_US.UTF-8"
alias tstop="sudo systemctl stop transmission"
alias tstart="sudo systemctl start transmission"
alias treload="sudo systemctl reload transmission"
#!/usr/bin/php
<?php
/* Transmission to Deluge export script
*
* Transmission - transmission-gtk 2.77 (14031)
* Deluge - deluge: 1.3.6
* Script - PHP 5.4.14 (cli)
*
* How to use this script;
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors.