Skip to content

Instantly share code, notes, and snippets.

View epexa's full-sized avatar

Erlan Sobakin epexa

  • Planet Earth
View GitHub Profile
@lukas-h
lukas-h / license-badges.md
Last active November 11, 2024 03:22
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@ntamvl
ntamvl / Increasing-the-amount-of-inotify-watchers.md
Created August 16, 2017 03:10
Increasing the amount of inotify watchers

Increasing the amount of inotify watchers

If you are not interested in the technical details and only want to get Listen to work:

  • If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active November 17, 2024 15:06
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@Luc1412
Luc1412 / auth_flow.py
Last active March 15, 2024 11:16
This is the auth flow for valorant (async) + Some further research I did in the past
import re
import aiohttp
async def run(username, password):
session = aiohttp.ClientSession()
data = {
'client_id': 'play-valorant-web-prod',
'nonce': '1',
'redirect_uri': 'https://beta.playvalorant.com/opt_in',
'response_type': 'token id_token',
@mokoshalb
mokoshalb / twitch2m3u8.php
Created April 21, 2020 21:08
A simple PHP script to get Twitch HLS Stream by a channel name.
<?php
ob_start();
$clientId = ""; //Set your client key
// cURL function
function Curl($url, $header){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
@nickofc
nickofc / gist:1b01a23bf29d7f8697af6cc720ea4f20
Created December 31, 2020 23:24
restream from twitch tv to youtube live
ffmpeg -i https://video-weaver.waw01.hls.ttvnw.net/v1/playlist/file.m3u8 -c copy -bsf:a aac_adtstoasc -f flv rtmp://a.rtmp.youtube.com/live2/{youtube-key}
@Lachee
Lachee / Example.cs
Last active September 16, 2024 15:21
Gets the available streams from Twitch. Useful for plugging into services such as ffmpeg.
// Starts a restream at 480p
async Task RestreamLowQuality(string channelName) {
var availableStreams = await Sniffer.GetStreamsAsync(channelName); // Fetch all the available streams
var stream = availableStreams.Where(s => s.QualityNo == 480).FirstOrDefault(); // Get just the 480, otherwise the best we can.
return BeginRestream(stream.Url); // Pass it to FFMPEG to restream it
}
// Starts FFMPEG to restream the url. This avoids SSL issues with OpenCV
private Process BeginRestream(string url, bool sync = false, bool verbose = false)
{