Skip to content

Instantly share code, notes, and snippets.

@Laiteux
Laiteux / crypto-pro-app-api.md
Last active June 30, 2025 07:21
Reverse-engineered, documented market data private API from Crypto Pro iOS/macOS app.

Crypto Pro App API

Reverse-engineered, documented market data private API from Crypto Pro iOS/macOS app.

Public endpoints, no authentication required (just a static timestamp int k query parameter).

Dictionary Endpoint

Provides reference data for assets and exchanges.

@jamtur01
jamtur01 / auto-buttons.js
Last active April 2, 2025 02:09
Auto-press Skip Buttons on Plex
// ==UserScript==
// @name Trigger on Skip Forward Button Click by Adjusting Video Time
// @version 1.2
// @description Adjust video time when the Skip Forward button is clicked in the Plex player, even across episodes or media changes.
// @author James Turnbull
// @match *://*/*
// @grant none
// @license MIT
// ==/UserScript==
@Clemv95
Clemv95 / ygg-api-download.yml
Last active August 4, 2025 12:50 — forked from LimeDrive/ygg-api.yml
Indexeur ygg-api pour jackett / prowlarr
---
id: yggapi
name: YggAPI
description: Indexeur non-officiel pour YggTorrent (YGG) - MOVIES / TV
language: fr-FR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://yggapi.eu/
@Laiteux
Laiteux / ValidateTelegramUsername.cs
Last active June 17, 2025 09:11
C# method to validate a Telegram username using RegEx
using System;
using System.Text.RegularExpressions;
bool ValidateTelegramUsername(string username)
=> Regex.IsMatch(username.TrimStart('@'),
"^(?=.{4,32}$)(?!.*__)(?!^(telegram|admin|support))[a-z][a-z0-9_]*[a-z0-9]$",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
Console.WriteLine(ValidateTelegramUsername("Laiteux1")); // True
Console.WriteLine(ValidateTelegramUsername("1Laiteux")); // False: Must start with a letter
@richlander
richlander / modernizing-csharp9.md
Last active April 26, 2024 17:14
Modernizing a codebase for C# 9

Modernizing a codebase for C# 9

There are lots of cases that you can improve. The examples use nullable reference types, but only the WhenNotNull example requires it.

Use the property pattern to replace IsNullorEmpty

Consider adopting the new property pattern, wherever you use IsNullOrEmpty.

string? hello = "hello world";
@kontoulis
kontoulis / plugin.freezone.php
Created October 8, 2019 19:53
Overrides freezone in trackamnia
<?php
/**
* ManiaLive - Freezone Plugin
*
* @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
* @version $Revision: 3705 $:
* @author $Author: philippe $:
* @date $Date: 2011-05-09 13:04:04 +0200 (lun., 09 mai 2011) $:
*/
@mraaroncruz
mraaroncruz / steps.md
Last active July 30, 2025 12:56
Get the Telegram channel ID

To get the channel id

  1. Create your bot with botfather
  2. Make you bot an admin of your channel

Simplest way (via @anhtuank7c)

Go to Telegram web and open a channel, get the ID from -[channel id] from hash in the path

https://web.telegram.org/k/#-9999999999999

@Rand0mB0t
Rand0mB0t / asciiFlipper.py
Last active November 19, 2024 15:28
Simple Python script for flipping an ASCII- art
__author__ = 'Rand0mb0t'
# Code for ASCII-ART Flipper
img_file = str(input("select an input file : "))
save_file = str(input("Select an output file : "))
with open(img_file,"r") as file: # Open art- file
lines = file.read().split('\n')
while '' in lines: # Remove any empty lines from file
lines.remove('')
@thesadoo
thesadoo / getTelegramAvatar.php
Created July 21, 2017 19:34
Get user's Telegram avatar with a simple function using their Telegram usernames
<?php
function getTelegramAvatar($username='')
{
$username = $username;
$username = str_replace('@', '', $username);
$baseURL = 'https://telegram.me/';
$pageURL = $baseURL . $username;
@71
71 / ExampleAsync.cs
Last active July 25, 2024 04:11
A file I used to understand how async / await works behind-the-scenes in C#.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Tests
{
/// <summary>