Skip to content

Instantly share code, notes, and snippets.

View bensuperpc's full-sized avatar
🕐
Working

Bensuperpc bensuperpc

🕐
Working
View GitHub Profile
@alkavan
alkavan / gource-commands.txt
Created April 11, 2010 16:41
Gource and ffmpeg Commands
################################
gource commands
################################
# basic command for big and long projects
gource --max-user-speed 500 --seconds-per-day 0.05 --file-idle-time 10 -e 0.005 -f --max-files 300 --hide-files
# some easy to understand commands
# for output file
--output-ppm-stream ~/ppm/ppm-kohana
@SilouFr
SilouFr / facebook_friends_number
Last active April 6, 2021 12:21
Liste des amis qui sont présents dans la fuite des numéros sur Facebook
Prérequis : avoir le leak, un compte facebook, des amis
Extraire la liste d'amis :
Pas de script miracle, j'ai fait ça à la main :
- se rendre sur votre profile > amis. Faire charger la liste en descendant en bas de la page au fur et à mesure de son chargement.
- Une fois chargée en entier, F12, se placer sur l'élément parent des div qui contiennent chacune un amis > edit as HTML > copier le tout dans un fichier "liste_brute.txt"
Extraire les URLs des amis :
`grep -Eoi '<a [^>]+>' friends.txt | grep -Eo 'href="[^\"]+"' | sort -u | cut -d "\"" -f 2 | grep -v "friends_mutual" > friends_urls.txt`
@xerpi
xerpi / .config
Last active September 19, 2021 00:50
Buildroot .config Nintendo 3DS Linux
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2020.11-312-gfd5eeabac0 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y
@outout14
outout14 / README-Template.md
Last active October 23, 2021 09:33 — forked from PurpleBooth/README-Template.md
Une template pour faire un joli README.md

Titre du projet

(juste en dessous des badges sympatiques à placer)

forthebadge forthebadge

Une petite description du projet

Pour commencer

Entrez ici les instructions pour bien débuter avec votre projet...

\ | | | | | | _) |
_ \ _ \ __| __ \ _ \ __| | | | __| | __ `__ \ _` | __| _ \
___ \ __/ | | | | __/ | | | | | | | | | ( | | __/
_/ _\\___|\__|_| |_|\___|_| \___/ _|\__|_|_| _| _|\__,_|\__|\___|
^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^^V^V^V^V^V^V
A Beta 1.7.3 Modpack by ScottoMotto
<*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><*><
Welcome to the Ultimate Aether Modpack for Minecraft Beta 1.7.3. This pack contains the original Aether mod plus many enhancements.
@bensuperpc
bensuperpc / vector_bench_add
Last active April 15, 2022 09:20
google benchmark vector type
#include <algorithm>
#include <vector>
#include <benchmark/benchmark.h>
template<class T>
static void vector_add(benchmark::State& state)
{
size_t size = state.range(0);
@xerpi
xerpi / make_3ds.sh
Last active April 27, 2023 10:33
Linux 3DS scripts
#!/bin/sh
TOOLCHAIN=/opt/armv6-eabihf--glibc--bleeding-edge-2020.02-2/bin/arm-buildroot-linux-gnueabihf-
cp arch/arm/configs/nintendo3ds_defconfig .config
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN -j8
make ARCH=arm CROSS_COMPILE=$TOOLCHAIN nintendo3ds_ctr.dtb
echo "Output file: ./arch/arm/boot/zImage"
@redsfyre
redsfyre / nvfixbl.sh
Created June 9, 2021 19:07
Simple script I wrote for Arch Linux to use Nvidia brightness setting properly
#!/bin/bash
for x in \
nvidia-460.67-5-x86_64.pkg.tar.zst \
nvidia-dkms-460.67-1-x86_64.pkg.tar.zst \
nvidia-settings-460.67-1-x86_64.pkg.tar.zst \
nvidia-utils-460.67-1-x86_64.pkg.tar.zst \
; do
test -f $x || \
@elvinio
elvinio / tcp_poll.cpp
Created July 24, 2015 01:17
C++: how to poll the TCP socket to read and write data.
void poller(int socketIn, std::string srcIP, int port){
struct pollfd fds[2];
// Initialize the fds to 0
memset(fds, 0, sizeof(fds));
// Wait in ms before poll times out. -1 for infinite
int timeout = 15000;
fds[0].fd = socketIn;
@mlorant
mlorant / region-dpts-France.py
Created December 20, 2016 15:24
Liste des régions et départements français (dict. Python)
REGIONS = {
'Auvergne-Rhône-Alpes': ['01', '03', '07', '15', '26', '38', '42', '43', '63', '69', '73', '74'],
'Bourgogne-Franche-Comté': ['21', '25', '39', '58', '70', '71', '89', '90'],
'Bretagne': ['35', '22', '56', '29'],
'Centre-Val de Loire': ['18', '28', '36', '37', '41', '45'],
'Corse': ['2A', '2B'],
'Grand Est': ['08', '10', '51', '52', '54', '55', '57', '67', '68', '88'],
'Guadeloupe': ['971'],
'Guyane': ['973'],
'Hauts-de-France': ['02', '59', '60', '62', '80'],