Skip to content

Instantly share code, notes, and snippets.

View stephanebruckert's full-sized avatar

Stéphane Bruckert stephanebruckert

View GitHub Profile
@just-ero
just-ero / asl-resource-dalet.md
Last active April 5, 2024 23:53
Provides some general information about how to go about making a LiveSplit auto splitter.

Resources to learn making very simple Auto Splitters

Preamble: this should not be attempted with online games or games which have an anti cheat in place, it could result in permanent bans.

Learn how to use Cheat Engine

The Cheat Engine section in the #tutorials channel in the Speedrun Tool Development Discord server has a few tutorials and guides. It is recommended to also do the Cheat Engine tutorial when the software is first launched. The Cheat Engine wiki and forums also have more resources. Cheat Engine is usually used to find health or money addresses to edit their values. Those addresses will be the information your auto splitter will depend on for everything it does. Should the goal be to split upon level changes, searching for an index (often int (4 Bytes)) or a name (string) can yield good results. For lo

@GetVladimir
GetVladimir / Force-RGB-Color-on-M1-Mac.md
Last active November 15, 2024 14:00
Force RGB Color on M1 Mac

Force RGB Color on M1 Mac

How to Force RGB Color Output instead of YPbPr on your M1 Apple Silicon Mac for an External Monitor.

This step-by-step video tutorial will guide you through the procedure of forcing RGB color output on your M1 Mac.

Force RGB Color on M1 Mac

Here is the direct link to the video tutorial: https://www.youtube.com/watch?v=Z1EqH3fd0V4

The video also has Closed Captions (Subtitles) that you can enable, to make it easier to follow if needed.

@jarmitage
jarmitage / avril.tidal
Created April 14, 2020 20:37
Avril 14th
-- happy avril 14th :)))))))))))))))))))))))))))))))))))))))
do
let bars = 4
key = "8"
righthand = "[[4 -3] [0 _ _ _ _ _ 0]] [[-3, -8] [7 5 4 0]]"
lefthand = "[0 9 12 16] [4 12 16 19] [5 12 17 19] [2 12 17 16]"
d1 $ slow bars
$ stack [
n (righthand + key + "<24 36>/2"),
@stephanebruckert
stephanebruckert / 2trancentral_youtube_channel_backup.csv
Last active August 25, 2024 09:20
1105 track titles from 2trancentral youtube channel before it gets hacked and deleted. This data is fully synced with this Spotify playlist https://open.spotify.com/playlist/7GlxpQjjxRjmbb3RP2rDqI Provided by www.mirror.fm
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 7 columns, instead of 3 in line 7.
yt_channel_id (S),yt_published_at (S),yt_track_id (S),yt_track_name (S),spotify_found_time (S),spotify_playlist (S),spotify_uri (S)
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-28T20:31:37.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLlNjMDJyS0pYeDlB,CK/NY - Fortys On Ice (Majestic Mix),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T00:08:35.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLnM2NEh3eWhIbFc0,Aurasfere - Terrasuave (1994),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T09:49:14.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLkFsVmx0QkpHZy1j,Remy & Sven - Silent Eruption (1992),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T21:39:06.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLmRwV0REbmRWOUZJ,Alien Signal - Quantum Limit (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-30T19:28:57.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLlhob1h0QXRYc0tJ,Alien Signal - First Approach (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-30T20:05:40.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLjB5Q1RBT0o2Umo4,Alien Signal - The Water Hole (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-31T15:57:43.000Z,VVVMNEoyMFkxVXBR
@BryceAMcDaniel
BryceAMcDaniel / getToken.ts
Created December 23, 2019 15:34
auth0 specific withApolloHOC for use with SSR in next.js.
import auth0 from '../../lib/Auth0/config';
export default async function session(req, res) {
try {
// console.log(req);
const { accessToken } = await auth0.getSession(req);
if (accessToken) res.send(accessToken);
res.status(500).end(accessToken);
} catch (error) {
@stephanebruckert
stephanebruckert / reverse-playlist.py
Last active February 17, 2020 03:44
Reverse a Spotify playlist
import os
import spotipy
import spotipy.util as util
'''
python3 script to reverse a Spotify playlist, i.e.:
A B C D E (before)
E D C B A (after)
@philcook
philcook / youtube-audio-only.html
Last active January 30, 2023 19:39
Youtube audio only player
<!DOCTYPE html>
<div style="display:flex;justify-content:center;align-items:center;">
<div style="width:400px;height:300px;">
<div data-video="I_2D8Eo15wE" data-autoplay="0" data-loop="1" id="youtube-audio"></div>
<div style="clear:both;margin:10px;text-align:center">
</div>
</div>
</div>
@mlalkaka
mlalkaka / ue-roll.sh
Last active October 30, 2022 11:31
Power on and off a UE Roll via Bluetooth using GATT and SPP
#!env sh
mac=C0:28:8D:00:2A:A8
function ue_on() {
handle=0x0003
value=b469218dd9e701
gatttool -b $mac --char-write-req --handle=$handle --value $value
}
@pgolding
pgolding / policy.md
Last active October 18, 2022 13:21
s3 bucket policy for presigned URLs generated by serverless lambda functions

AWS Presigned URLs

Presigned URLs are useful for fine-grained access control to resources on s3.

For example, if storing larger text blocks than DynamoDB might allow with its 400KB size limits s3 is a useful option.

Ignoring various ACL methods and using presigned URLs, it's possible to create lambda functions that can generate the required upload and download URLs.

Using the default IAM roles and lambda proxy configuration of serverless, lambdas are assigned an IAM role for the application (so that a logical group of functions can share resources - e.g. for a CRUD REST API). Each function then assumes the IAM role via its own function name.

@connorjan
connorjan / shairport-sync-install.md
Last active August 6, 2024 06:55
shairport-sync installation for a Raspberry Pi