Skip to content

Instantly share code, notes, and snippets.

View DET171's full-sized avatar
🌎
Working from home

Canaris DET171

🌎
Working from home
View GitHub Profile
@DET171
DET171 / index.js
Last active July 3, 2022 13:37
For checking who to deport (GH Gist edition)
import got from 'got';
import { JSDOM } from 'jsdom';
import chalk from 'chalk';
import table from 'chalk-table';
import { usernames, problems } from './toFetch.js';
const frames = [
'⠋',
'⠙',
@DET171
DET171 / starship.toml
Last active September 5, 2022 08:21
My Starship configuration
# Disclaimer: I will not be responsible if you get eye cancer from this
format = """
[╭──[](#9A348E)[$username](bg:#9A348E)\
[](bg:#DA627D fg:#9A348E)[㉿](bold bg:#DA627D fg:#ffffff)\
[](fg:#DA627D bg:#FCA17D)[$hostname](bold fg:#ffffff bg:#FCA17D)\
[](fg:#FCA17D bg:#0059ff)[@](bold fg:#ffffff bg:#0059ff)\
[](fg:#0059ff bg:#ff8ff8)[$localip](bold fg:#ffffff bg:#ff8ff8)\
[](fg:#ff8ff8 bg:#10c902)[$battery](bold fg:#ffffff bg:#10c902)\
[](fg:#10c902 bg:#ff8800)[$cmd_duration](bold fg:#ffffff bg:#ff8800)\
@DET171
DET171 / find.js
Last active March 24, 2023 04:07
Find the profile of a certain person on codebreaker.xyz
// install the required dependencies first:
// npm i common-tags axios jsom consola
// and finally run the program
// node find.js
// NOTE: This is ESM
import axios from 'axios';
import { stripIndents } from 'common-tags';
import { JSDOM } from 'jsdom';
import console from 'consola';
@DET171
DET171 / macros.hpp
Created April 18, 2022 07:13
My short collection of C++ macros
#define l long
#define d double
#define str string
#define ll l l
#define ull unsigned ll
#define endl "\n"
#define forx(y) for (ll x = 0; x < y; x++)
#define in(x) cin >> x;
#define outln(x) cout << x << endl;
#define out(x) cout << x << " ";
@DET171
DET171 / list.json
Last active June 26, 2021 07:21
PF Gun list in JSON
{"list":[{"name":"M9","cal":"9×19mm","dmg":"35-10","cap":"15+1 / 105","rpm":"780","multi":"1.50/1.10","desc":"A 9mm Italian pistol. One of the first 'wonder nines'. High capacity with deep reserves, light recoil, and high velocity. ","r":"40-80","rank":"0"},{"name":"GLOCK 17 (G17)","cal":"9×19mm","dmg":"34-10","cap":"17+1/102","rpm":"780","r":"40-90","multi":"1.50/1.10","desc":"A 9mm Austrian pistol renowned for its simplicity and ruggedness. Compared to the M9, it has a higher capacity, but less muzzle velocity.","rank":"0"},{"name":"M1911","cal":".45 ACP","dmg":"48-29","cap":"8+1/56","rpm":"720","r":"55-90","multi":"1.40/1.15","desc":"A classic American pistol brought into the modern age. Very high damage up close, with poor velocity and small magazine size.","rank":"8"},{"name":"DESERT EAGLE (DEAGLE) L5","cal":".44 MAGNUM","dmg":"56-32","cap":"8+1/40","rpm":"400","r":"50-80","multi":"2.00/ 1.30","desc":"A modern version of the iconic Israeli-American pistol. This specific model has been lightened as well