Skip to content

Instantly share code, notes, and snippets.

View francisuk1989's full-sized avatar

Francis francisuk1989

  • Douglas, Isle of Man
  • 07:41 (UTC +01:00)
View GitHub Profile
@tuantmb
tuantmb / transmac reset.txt
Created February 22, 2023 23:16
Reset TransMac Trial back to 15 days (Unpatchable)
since you can find this on the internet easily anyway, i decided to create this for ya.
I know a lot of ppl wont like this but fuck it, it's ez anyway.
One click batch script download: https://anonfiles.com/59T773t2uf/TransMac_Trial_Resetter_bat
Run this whenever you want or put it in your startup folder
(Win+R and type shell:startup)
For all other users, one time easy way to do it, open Regedit
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved\ or paste that in the address bar.
@DevStefIt
DevStefIt / ffmpeg_dash.sh
Last active January 16, 2025 18:12
HLS and DASH guide on an Nginx server with RTMP mode enabled, with FFmpeg as support
ffmpeg -re -i INPUT -c:v libx264 -c:a aac -preset slower -f dash ARBITRARY_NAME.mpd
@DevStefIt
DevStefIt / rtmp_server_commands.txt
Last active June 5, 2024 20:33
A list of commands to configure a Nginx server to send data through RTMP
# All the commands have been tested on a Xubuntu 22.04
# First we update our machine
sudo apt update
sudo apt upgrade
# We install the Nginx server
sudo apt install nginx
# We test and enable the firewall if it is disabled
sudo ufw status
@joulgs
joulgs / terminal.txt
Last active April 19, 2025 04:58
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@n1zyy
n1zyy / time.apple.com.md
Last active April 11, 2025 20:07
Apple NTP servers

Apple runs a fleet of stratum 1 NTP servers at time.apple.com. In my experience, ntpd/chronyd are very happy with them.

It looks like, instead of doing anycast, they maybe use DNS to steer you to the closest one.

time.apple.com is a CNAME for time-osx.g.aaplimg.com. Querying a handful of DNS servers, I've identified the following locations:

IP Hostname Location
17.253.2.125 usdal4-ntp-001.aaplimg.com. Dallas
@heri16
heri16 / README.md
Last active March 9, 2025 07:55
Openwrt: Uses CAKE's diffserv4 classifications: Bulk, Best Effort, Video, Voice in combination with act_ctinfo and CONNMARK --set-dscpmark to restore DSCP classifications on ingress.

Smart Queue

Initial Setup

opkg update
opkg install luci-app-sqm kmod-sched-ctinfo iptables-mod-hashlimit ipset nano

# Install modified layer_cake to sqm-scripts
wget https://gist.githubusercontent.com/heri16/06c94b40f0d30f11e3a82166eca718f3/raw/layer_cake_ct.qos -O /usr/lib/sqm/layer_cake_ct.qos

1. Compile nginx with rtmp module

Clone nginx-rtmp-module

$ git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git

Install nginx dependencies

@diegargon
diegargon / QoS
Last active May 20, 2023 21:20
QoS Ubuntu Script
#!/bin/bash
# Diego García Gonzalez (diegargon) [email protected]
# v1.0
### BEGIN INIT INFO
# Provides: myQoS
# Required-Start: networking, myFirewall
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
@dangkhoasdc
dangkhoasdc / windows10_speed_up.md
Last active July 12, 2024 20:39
Some tips&tricks to speed up windows 10

Network

Disable Windows Update delivery

Settings > Update & Security > Windows Update > Advanced Options:

  • Turn off the p2p file transfer [Recommend]
  • Limit the p2p transfer to PCs on the local network

Turn off background apps

@Brainiarc7
Brainiarc7 / ffmpeg-livestream-to-streaming-sites-vaapi-nvenc.md
Last active August 18, 2024 02:58
ffmpeg livestreaming to youtube via Nvidia's NVENC and Intel's VAAPI on supported hardware

Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:

Considerations to take when live streaming:

The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:

  1. Set the buffer size (-bufsize:v) equal to the target bitrate (-b:v). You want to ensure that you're encoding in CBR mode.

  2. Set up the encoders as shown: