Skip to content

Instantly share code, notes, and snippets.

View dw5's full-sized avatar
🇨🇭
Making better tasting swiss cheese for mail

dw5

🇨🇭
Making better tasting swiss cheese for mail
  • Zurich, CH
  • 11:42 (UTC +02:00)
  • X @0x8616
View GitHub Profile
@dw5
dw5 / private_fork.md
Created August 7, 2023 17:12 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@dw5
dw5 / GeoIP Block NGINX Ubuntu 20.04.md
Created January 29, 2023 15:14 — forked from dunderrrrrr/GeoIP Block NGINX Ubuntu 20.04.md
Allow or block GeoIP in Nginx on Ubuntu 20.04

GeoIP Block NGINX Ubuntu 20.04

Block or filter IPs based on location in Nginx (tested on 1.18.0) on Ubuntu 20.04.

Install Nginx modules

To make use of the geographical filtering, we must first install the Nginx GeoIP module as well as the GeoIP database containing the mappings between visitors’ IP addresses and their respective countries. To do so, let’s execute:

$ sudo apt install libnginx-mod-http-geoip geoip-database
# NGiNX reverse proxy configuration for Jellyfin
#
# Use this configuration on NGiNX running on the same server as your Jellyfin instance. Replace the values as needed.
# LetsEncrypt is enabled and configured using `certbot`: install it via apt on Debian (`sudo apt install certbot`) or
# your package manager of choice. To start, make only the first section (port 80) active, then once that configuration
# is active, run Certbot for the first time to request your cert. Then, add the second section (port 443) and reload.
# With this config left in place, Certbot's automatic renewal will work and automatically replace the cert and
# reload NGiNX as needed, without interrupting your Jellyfin instance.
#
# Certbot request command:
@dw5
dw5 / phpdangerousfuncs.md
Created August 17, 2021 20:39 — forked from mccabe615/phpdangerousfuncs.md
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
@dw5
dw5 / disposable-email-provider-domains
Created August 14, 2021 13:21
List of disposable email provider domains
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com
@dw5
dw5 / stslte-notes.md
Created May 12, 2021 19:33 — forked from JamesHagerman/stslte-notes.md
My notes about running srsLTE

srsLTE notes

These are notes I've taken while rying to get srslte up and running. This is messy, sorry...

Working solution - LimeSDR + SoapySDR + srsLTE

Dependencies:

sudo apt install tree vim git g++ make cmake pkg-config libpython-dev python-numpy swig libi2c-dev libusb-1.0-0-dev libfftw3-dev libmbedtls-dev libboost-program-options-dev libconfig++-dev libsctp-dev gnuradio
@dw5
dw5 / Google Translate Core files
Last active April 22, 2021 11:50 — forked from pi0/Core files
Google translate Offline Language Files
https://dl.google.com/translate/offline/v3/r1/c.zip
https://dl.google.com/translate/offline/v3/r1/profiles.txt
@dw5
dw5 / ffmpeg.md
Created November 23, 2019 19:55 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@dw5
dw5 / swine_hd_patch.txt
Last active April 11, 2020 14:41 — forked from kris7t/gist:2850110
Patch S.W.I.N.E. v1.9 to support 800x600, 1366x768, 1920x1080, 1920x1200 (loses support for 1024x768, 1280x1024, 1600x1200).
This difference file has been created by IDA Pro
swine.exe
0012F735: 30 33
0012F736: 32 36
0012F737: 34 36
0012F741: 32 39
0012F742: 38 32
0012F747: 32 38
0012F748: 34 30
@dw5
dw5 / FindInArchive.cxx
Created November 1, 2019 13:43 — forked from kris7t/FindInArchive.cxx
PACK file decompilation
SLibEntryRef __thiscall SFileSystem__FindInArchive(SFileSystem *this, int index, const char *str)
{
SLibEntryRef result; // qax@3
char name_offset; // ST13_1@14
const char *name; // ST18_4@14
unsigned __int8 name_length; // ST12_1@14
SFileSystem *self; // [sp+0h] [bp-14h]@1
int cmp; // [sp+8h] [bp-Ch]@14
SLibEntryHead *lib_entry; // [sp+Ch] [bp-8h]@13
SLibEntryRef *ref; // [sp+Ch] [bp-8h]@14