Skip to content

Instantly share code, notes, and snippets.

View bensuperpc's full-sized avatar
🕐
Working

Bensuperpc bensuperpc

🕐
Working
View GitHub Profile
@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);
@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 || \
@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`
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 10, 2024 20:23
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
\ | | | | | | _) |
_ \ _ \ __| __ \ _ \ __| | | | __| | __ `__ \ _` | __| _ \
___ \ __/ | | | | __/ | | | | | | | | | ( | | __/
_/ _\\___|\__|_| |_|\___|_| \___/ _|\__|_|_| _| _|\__,_|\__|\___|
^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.
@csuft
csuft / dragdrop.qml
Created June 8, 2018 03:32
drag and drop in qml listview
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
ApplicationWindow {
id: root
width: 780
height: 150
visible: true
@xerpi
xerpi / 3DS_Linux_build_instructions.md
Last active March 27, 2024 12:02
3DS Linux build instructions

Step 1: Compiling or Downloading the toolchain

Step 1.a: If you choose to download a pre-compiled toolchain (only for Linux x86-64)

  • Go to https://toolchains.bootlin.com
  • Select arch: armv6-eabihf
  • Select libc: glibc
  • Download bleeding-edge
  • Uncompress it (for example to /opt)
  • Add the bin/directory of the toolchain to $PATH
  • In my case: export PATH=$PATH:/opt/armv6-eabihf--glibc--bleeding-edge-2020.08-1
@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...