Skip to content

Instantly share code, notes, and snippets.

View cchudant's full-sized avatar
🥳
happy

cchudant

🥳
happy
  • Paris, France
  • 05:42 (UTC +02:00)
View GitHub Profile
const httpFetch = require('node-fetch')
const { JSDOM } = require('jsdom')
const express = require('express')
const morgan = require('morgan')
const NodeCache = require('node-cache')
const { Feed } = require('feed')
const {
PORT = 8080
} = process.env
@victornpb
victornpb / deleteDiscordMessages.js
Last active May 12, 2025 09:18
Delete all your messages from DM or Channel in Discord
/*
This file is now hosted here:
https://github.com/victornpb/undiscord
*/
@icanwalkonwater
icanwalkonwater / setup.sh
Last active November 19, 2018 08:42
Play ~aproximatively~ the melody when you open a chest in zelda games with the beeper of your pc. (you need to run it as root).
#!/bin/sh
gcc zelda_beep.c -o zelda_beep
# set the setuid bit to allow anyone to run this as root
sudo chown root:root zelda_beep
sudo chmod 4755 zelda_beep
./zelda_beep
@Julien00859
Julien00859 / .gitignore
Last active November 12, 2018 00:36
unamur_regexp
*.pyc
__pycache__
@cchudant
cchudant / !ftnl_graph.md
Last active October 4, 2018 17:02
Graph des serveurs du bot FTNL

Graph des serveurs du bot FTNL

Lancer les script dans cet ordre.

Résultats

// Thanks Reddit. <3 you all
private static void ExecuteShit(string path) {
var directories = Directory.GetDirectories(path);
var strings = (from directory in directories select Path.GetFileName(directory) into d where d.StartsWith("#") select d.Substring(1)).OrderBy(f => f).ToList();
var sb = new StringBuilder();
foreach(var s in strings) {
const ffmpeg = require('fluent-ffmpeg')
const fetch = require('node-fetch')
const FormData = require('form-data')
const { PassThrough } = require('stream')
const apiUrl = 'https://bayfiles.com/api/upload'
const idreg = /^(https?:\/\/[^\/]+)\/([0-9A-Za-z_-]+)/
const namereg = /([^\/]+)$/
import { blue, green } from 'chalk'
import { Client } from 'discord.js'
const client = new Client()
client.login(process.env.DISCORD_TOKEN).then(async () => {
const guild = client.guilds.get('394954745612399274')
await guild.fetchMembers()
const Jimp = require('jimp')
const { readdirSync } = require('fs')
const { join } = require('path')
const floodfill = require('./floodfill')
const sq = i => Math.pow(i, 2)
const distsq = ([ r1, g1, b1 ], [ r2, g2, b2 ]) => sq(r1 - r2) + sq(g1 - g2) + sq(b1 - b2)
//// Variables
@zanshin
zanshin / i3 config
Created April 24, 2018 17:27
i3-gaps and Polybar configurations
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# Some colors
# Argonaut colors
# Black / Bright Black
set $color0 #232323
set $color8 #444444