Skip to content

Instantly share code, notes, and snippets.

View Asgarrrr's full-sized avatar

Jérémy Caruelle Asgarrrr

View GitHub Profile
@Asgarrrr
Asgarrrr / GvG.json
Created August 10, 2023 15:14
Détail des précédentes saisons gvg
[
{
"nid": [
3474012,
4378191
],
"type": "season",
"dt": [
1563012000000,
1577613540000
#Télécharger Gateling 3.4.1
wget https://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts-
bundle/3.4.1/gatling-charts-highcharts-bundle-3.4.1-bundle.zip
#Décompresser gatling-charts-highcharts-bundle-3.4.1-bundle.zip
#Renomer le répértoire
mv gatling-charts-highcharts-bundle-3.4.1-bundle.zip gatling chmod –R 775 gateling
chown –R inset:inset gateling
#Lancer le recorder
./recorder.sh
{
"aliases": [
{ "id": "achates", "alias": [] },
{ "id": "adlay", "alias": [] },
{ "id": "adventurer-ras", "alias": ["aras"] },
{ "id": "ainos", "alias": [] },
{ "id": "ains", "alias": [] },
{ "id": "aither", "alias": [] },
{ "id": "alencia", "alias": ["alencinox", "tsundere"] },
{ "id": "alexa", "alias": [] },
c1004.png
size: 2001,634
format: RGBA8888
filter: Linear,Linear
repeat: none
1/11/1
rotate: false
xy: 1387, 2
size: 80, 39
@Asgarrrr
Asgarrrr / index.js
Created October 16, 2021 11:40
RGB to HEX
const rgbToHex = ( r, g, b ) => "#" + [ r, g, b ].map( ( x ) => {
const hex = x.toString( 16 )
return hex.length === 1 ? "0" + hex : hex
}).join( "" );
rgbToHex( 102, 51, 153 ); // #663399
@Asgarrrr
Asgarrrr / README.md
Created September 13, 2021 00:20
Fetch a SoundCloud API key without owning an application

Fetch a SoundCloud API key without owning an application

This script allows you to retrieve an API key without having to create a resource. Be careful though, the site can change suddenly, so keep this in mind.

There are two versions of this script, one without dependencies and one using node-fetch

// —— STEP 1:
// Copy and paste the following code into the discord console by pressing CTRL + SHIFT + I
// —— STEP 2:
Object.defineProperty((webpackChunkdiscord_app.push([
[ "" ], { },
( e ) => {
m = [];
for ( let c in e.c ) m.push( e.c[ c ] )
}
// —— This corresponds to the message that was sent by the user to trigger the command
async run(message) {
// —— At the beginning, we are on the first page
let position = 0;
// —— Array of all our pages, a page is an object (an embed)
const pages = [{
title: "This is page 1",
description: "This is an example of a pagination system",
color: "#fcba03"
}, {
@Asgarrrr
Asgarrrr / dino.js
Created February 7, 2021 16:23
Never lose at Dino Runner
/**
* 1. Open your browser's console
* 2. Turn off your internet connection (or press `⌘ + P` or `ctrl + P` and write 'Offline')
* 3. Paste the code in the "console" section
* 4. Start the game
* 5 🌵 🦖
*/
const game = Runner.instance_;
@Asgarrrr
Asgarrrr / canvasToVideo.js
Last active August 27, 2021 08:28
Allows video export of a canvas
/**
* Allows video export of a canvas
*
* @param {Number} [fps = 60] — Frames per second.
* @param {Number} [recordTime = 6000] — Canvas recording time in ms
* @param {Object} [options] — Recording settings, please refer to https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#properties
*/
function canvasToVideo( fps = 60, recordTime = 6000, options ) {
navigator.getUserMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia ||navigator.mozGetUserMedia || navigator.msGetUserMedia );