Skip to content

Instantly share code, notes, and snippets.

@chk1
chk1 / README.md
Last active May 21, 2023 22:19
SRCDS on Linux scripts with auto updates, for Jabroni Brawl 3 dedicated server.

SRCDS Scripts

SRCDS on Linux scripts with auto updates, for Jabroni Brawl 3 dedicated server.

My Setup

  • Ubuntu Server 20.04/22.04
  • Dedicated steam user
  • Everything is located in the steam user's home directory
  • Install screen and whatever else is needed for a SRCDS (see references at the end)
@chk1
chk1 / README.md
Last active February 23, 2024 23:05
Dell S2721dgf/S2721dgfa volume control via Dell Display Manager (ddm) on Windows
@chk1
chk1 / _README.md
Last active October 9, 2021 01:10
Duck Game Hat Decryptor / .hat to .png
@chk1
chk1 / bindings.xml
Created December 19, 2019 09:06
Firefox 71 mouse wheel scrolling on tab bar, set `toolkit.tabbox.switchByScrolling` to false
<?xml version="1.0"?>
<!--
https://www.reddit.com/r/firefox/comments/afh6th/howto_enable_tab_switching_in_firefox_using_mouse/
http://forums.mozillazine.org/viewtopic.php?p=14851401#p14851401
-->
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="tabs-scroll">
<handlers>
<handler event="wheel"><![CDATA[
if (event.metaKey) return;
@chk1
chk1 / mapillary-ffmpeg.md
Last active November 15, 2019 00:09
Assorted ffmpeg commands for doing Mapillary things

Assorted ffmpeg commands for doing Mapillary things

ffmpeg version N-94423-ga0c1970781 on Windows 10 1809

Combine video files

Create a file list.txt like this (the text "file " before each filename is required):

file first.mp4
file second.mp4
@chk1
chk1 / gitea.yml
Created August 25, 2019 14:58
docker-compose files for various services
version: '2'
services:
web:
image: gitea/gitea:1
volumes:
- ./data:/data
ports:
- "127.0.0.1:3000:3000"
- "3033:22"
restart: always
@chk1
chk1 / traccar-fetch-gpx.py
Created August 7, 2019 16:16
Download Traccar data as GPX
import json
import urllib.request
import base64
params = {
"deviceId": "1",
"from": "2019-07-31T12:00:00+02:00",
"to": "2019-07-31T23:00:00+02:00"
}
outfile = "2019-07-31T12-23.gpx"
@chk1
chk1 / filterlist.txt
Last active October 1, 2019 17:43
Stop video autoplay on tech news, add it to your adblocker filter list
ultimedia.com
forbes.com##sidenav.video-player
gizmodo.com##.sidebar-item video
gizmodo.com##.instream-native-video
player.cnevids.com
cnet.com##[data-video-player="container"]
android-streaming.techrepublic.com
vidtech.cbsinteractive.com
@chk1
chk1 / nginx-403.conf
Created June 29, 2019 14:35
Fail2ban filters
[Definition]
failregex = ^.*:[0-9]+ <HOST> - - \[.*\] "(GET|POST|HEAD).*HTTP.* (403|404)
^\d+\/\d+\/\d+ \d+:\d+:\d+ \[error\] \d+#\d+: \*\d+ access forbidden by rule, client: <HOST>, server:
ignoreregex =
@chk1
chk1 / B1W portscan.txt
Last active February 2, 2024 10:39
Blueskysea B1W portscan
$ nmap -p0- -v -A -T4 192.168.201.1
Starting Nmap 6.40 ( http://nmap.org ) at 2019-06-10 20:49 CEST
NSE: Loaded 110 scripts for scanning.
NSE: Script Pre-scanning.
Initiating Ping Scan at 20:49
Scanning 192.168.201.1 [2 ports]
Completed Ping Scan at 20:49, 0.01s elapsed (1 total hosts)
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers
Initiating Connect Scan at 20:49