Skip to content

Instantly share code, notes, and snippets.

View szilvesztercsab's full-sized avatar
💻
I may be slow to respond.

Csaba Szilveszter-Berei szilvesztercsab

💻
I may be slow to respond.
View GitHub Profile
@hastinbe
hastinbe / qbittorrent_hash.py
Created January 9, 2024 15:20
Generates a PBKDF2 hash for qBittorrent WebUI password. This is useful for setting the password in the config file.
#!/usr/bin/env python
#
# Generates a PBKDF2 hash for qBittorrent WebUI password. This is useful for setting the password in the config file.
#
# NOTE: Hashing algorithm must match https://github.com/qbittorrent/qBittorrent/blob/master/src/base/utils/password.cpp
#
# Usage: python qbittorrent_hash.py
#
# Author: Beau Hastings (https://github.com/hastinbe)
# Date: 2024-01-09
@miguelmota
miguelmota / external_link_arrow.txt
Last active April 15, 2025 09:19
Unicode UTF-8 external link arrow symbol (closest thing to it)
@kennyeliason
kennyeliason / makewpsuck.sh
Last active September 25, 2024 18:33
Make WP Suck Less or More
#!/bin/bash
# Make sites into bedrock or normal WordPress
# Version 2.0
# Copyright (c) Kenny Eliason
set -a
source .env
set +a
@AlexNDRmac
AlexNDRmac / phpenv-install.md
Last active February 8, 2025 20:07 — forked from sergeyklay/phpenv-install.md
Multiple PHP versions using phpenv and php-build

Multiple PHP versions using phpenv and php-build

Install dependecies

Debian/Ubuntu users

sudo apt install \
  autoconf \
 bison \
@pauleveritt
pauleveritt / python_ssr.md
Last active June 3, 2022 07:52
LitElement and Python SSR

Filed under "it's likely hopeless, but..."

I'm beginning an exploration of LitElement and web components. I've been heavy in Angular, React, Gatsby, and HyperApp. Since I'm currently deep in Gatsby, I'm thinking about SSR, PRPL, and "first render".

More specifically, I come from Python. It's hard if you're not running Node on the server and get SSR and first render. This document talks about it.

@mihow
mihow / load_dotenv.sh
Last active April 22, 2025 02:18
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@KarlAmort
KarlAmort / beautiful-failure.py
Created May 22, 2016 17:58
An Ansible plugin to format console output
# Save as <folder with your playbook>/callback_plugins/<some name>.py
# Optionally use no_log: True on your playbook/roles/tasks to suppress other output
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import time
import json
import sys