Skip to content

Instantly share code, notes, and snippets.

View mis4s's full-sized avatar
🎯
Focusing

Sebastian mis4s

🎯
Focusing
View GitHub Profile
@mis4s
mis4s / renovate.json
Created December 29, 2023 08:54
Renovate for Flux for all arr (hotio) + plex + qbittorrent
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"flux": {
"fileMatch": [
"\\.yaml$",
"\\.yml$"
]
},
"packageRules": [
{
<?php
$inputHandler = fopen('php://input', "r");
$path = realpath(dirname(__FILE__) . '/upload');
$fileHandler = fopen($path . '/' . 'some-name-file', "a+");
while (true) {
$buffer = fgets($inputHandler, 4096);
if (strlen($buffer) == 0) {
@mis4s
mis4s / zfs.md
Created August 2, 2017 18:10
Custom Proxmox on OVH with ZFS

Custom Proxmox ZFS on OVH

  1. Udev
cat /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="XX:XX:XX:1a:97:08", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
@mis4s
mis4s / index.php
Created September 5, 2016 13:37
wFirma API 2 exmple request token
<?php
define('SCOPE', 'invoices-read,invoices-write,contractors-write,goods-write,goods-read');
define('APP_URL', 'your-app.dev');
function requestToken() {
$OAuth = new OAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_SIG_METHOD_PLAINTEXT);
try {
@mis4s
mis4s / rc.conf
Created February 13, 2015 09:17
FreeBSD Proxmox Ip failover configuration online.net
ifconfig_vtnet0="inet IP.FAILOVER netmask 255.255.255.255 broadcast IP.FAILOVER"
static_routes="net1 net2"
route_net1="-net MOTHER.IP.1/32 IP.FAILOVER"
route_net2="default MOTHER.IP.1"
@mis4s
mis4s / interfaces
Created February 13, 2015 09:13
Debian Proxmox Ip failover configuration online.net
auto eth0
iface eth0 inet static
address IP.FAILOVER
netmask 255.255.255.255
broadcast IP.FAILOVER