Skip to content

Instantly share code, notes, and snippets.

View Ascor8522's full-sized avatar

Ascor8522 Ascor8522

View GitHub Profile
@Ascor8522
Ascor8522 / .eslintrc.cjs
Last active September 16, 2023 08:42
My custom ESLint config
/**
* Dependencies:
* ```sh
* npm i -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-deprecation eslint-plugin-import eslint-plugin-only-warn
* ```
* @type {import("eslint").ESLint.ConfigData}
*/
module.exports = {
/* eslint-disable quote-props */
env: {
@Ascor8522
Ascor8522 / spys one table sort.js
Created June 25, 2022 15:56
Enable sorting proxies by column in table
// ==UserScript==
// @name Proxy sorter
// @version 0.1
// @description Enable sorting proxies by column in table
// @author Ascor8522
// @match https://spys.one/*
// @grant none
// ==/UserScript==
(function() {
@Ascor8522
Ascor8522 / Attributes.ts
Created April 10, 2021 13:37
A TypeScript utility type that only extract the attributes of a type, and ignores the methods.
/**
* Extracts the attributes of a type, and ignores the methods.
* Can be used in a constructor, when passing a destructured object of the same type.
* Requires TypeScript 4.1+
*/
export type Attributes<T> = {
[K in keyof T as T[K] extends Function ? never : K]: T[K]
};
@Ascor8522
Ascor8522 / gdb cheatsheet.md
Created February 12, 2019 11:47
A cheatsheet in French with a few useful commands for the GNU Debugger

gdb cheatsheet

Lancer gdb

Par défaut

gdb <filename>

Avec arguments :

@Ascor8522
Ascor8522 / scratch-desktop-Linux-FR.md
Last active September 18, 2020 23:44
Scratch Desktop (Éditeur Hors-Ligne Scratch 3.0) pour GNU/Linux

Scratch Desktop (Éditeur Hors-Ligne pour Scratch 3.0) pour GNU/Linux

Guide pas-à-pas pour installer Scratch Desktop sur les distributions Linux basées sur Debian (Debian, *ubuntu, etc...). Un fichier shell sans les explications est disponible plus bas.

Traduit de l'anglais à partir du gist de lyshie

Extraire Scratch Desktop

$ # Télécharger Scratch Desktop
@Ascor8522
Ascor8522 / Manu.js
Last active June 22, 2018 19:20
Replaces all occurences of "Manu" by "Manu"
// ==UserScript==
// @name Manu
// @author Smrman
// @description Replaces all the occurences of "Emmanuel Macron" by "Manu"
// @version 0.1
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {