Skip to content

Instantly share code, notes, and snippets.

View vladfrangu's full-sized avatar
🛠️
Writing & Breaking Code

Vlad Frangu vladfrangu

🛠️
Writing & Breaking Code
View GitHub Profile
// /@vite/env
const context = (() => {
if (typeof globalThis !== 'undefined') {
return globalThis;
}
else if (typeof self !== 'undefined') {
return self;
}
else if (typeof window !== 'undefined') {
return window;
@vladfrangu
vladfrangu / index.mjs
Created December 2, 2021 16:18
Sapphire load message listeners example
import { LogLevel, SapphireClient } from '@sapphire/framework';
const client = new SapphireClient({
intents: ['GUILDS', 'GUILD_MESSAGES'],
logger: {
level: LogLevel.Debug
},
loadMessageCommandListeners: true
});
@vladfrangu
vladfrangu / chain_of_events.md
Last active August 31, 2020 11:04
What happened in Dirigeants, and where are we going next

This is a long story, with a lot of events that ended up creating the current state of Dirigeants: silent, dead, and unable to be maintained all due to AoDude (known as bdistin on GitHub) being power hungry, and not to mention selfish.

Around July 23rd, it all started when AoDude kicked Kyra for pinging him that his bot went offline. Thus, Kyra lost his Developer (and Admin) role, the former being given back once Kyra rejoined, however a reason behind the kick was never actually given. Around that day, we started drafting a formal letter, informing AoDude that due to his repeated violations of his own Code of Conduct, he will lose the ownership status on the GitHub organization, and unless he respects the terms mentioned in the letter, he'll lose the membership status as well.

Another one of Ao's actions was to ban Kyra over "breaking copyright", and filing an unofficial DMCA takedown request to Kyra's work-in-progress framework. The issue is publicly available here: https://github.com/sapphire-proj

[material]
main_fg = 2196F3
secondary_fg = DEDEDE
main_bg = 181818
secondary_bg = 101010
sidebar_and_player_bg = 181818
cover_overlay_and_shadow = 181818
indicator_fg_and_button_bg = 313235
pressing_fg = 34575C
slider_bg = b4b7b4
{
"bracket-pair-colorizer-2.highlightActiveScope": true,
"breadcrumbs.enabled": false,
"debug.inlineValues": true,
"diffEditor.ignoreTrimWhitespace": false,
"discord.detailsEditing": "{filename}",
"discord.detailsDebugging": "🐛 {filename}",
"discord.enabled": true,
"discord.lowerDetailsEditing": "{workspace} | {currentline}/{totallines} | {filesize}",
"discord.lowerDetailsDebugging": "{workspace} | {currentline}/{totallines} | {filesize}",

Keybase proof

I hereby claim:

  • I am vladfrangu on github.
  • I am kingdgrizzle (https://keybase.io/kingdgrizzle) on keybase.
  • I have a public key ASDV7AztLGXbL4T_NdfwakELPUvTxTbDalPxEllrPF9v4Ao

To claim this, I am signing this object:

@vladfrangu
vladfrangu / code.js
Created June 9, 2019 15:15
Create simple pride flags for your needs
const { Canvas } = require('canvas-constructor');
const { promises: fs } = require('fs');
const flags = {
pride: ["#E70000", "#FF8C00", "#FFEF00", "#00811F", "#0044FF", "#760089"],
trans: ["#55CDFC", "#F7A8B8", "#FFFFFF", "#F7A8B8", "#55CDFC"],
pan: ["#FF148C", "#FFDA00", "#05AEFF"],
ace: ["#000000", "#A3A3A3", "#FFFFFF", "#800080"],
nb: ["#FFF433", "#FFFFFF", "#9b59d0", "#000000"],
bi: ["#D9006F", "#744D98", "#0033AB"],
@vladfrangu
vladfrangu / bd3d4befe38185704bf0fc875e9deed6|configuration.json
Last active October 9, 2018 19:39
Visual Studio Code Settings Sync Gist
{"contents":{"launch":{"version":"0.2.0","configurations":[{"type":"node","request":"launch","name":"MASTER","program":"${workspaceFolder}/master.js","runtimeArgs":["--inspect=50002"],"port":50002,"autoAttachChildProcesses":true,"stopOnEntry":false,"outputCapture":"std","console":"integratedTerminal"}]}},"overrides":[],"keys":["launch.version","launch.configurations"]}
@vladfrangu
vladfrangu / simple-nodejs-iv-encrypt-decrypt.js
Created April 26, 2018 14:06 — forked from yoavniran/simple-nodejs-iv-encrypt-decrypt.js
nodejs crypto - simple encrypt & decrypt using IV (Initialization Vector)
"use strict";
var crypto = require("crypto");
var EncryptionHelper = (function () {
function getKeyAndIV(key, callback) {
crypto.pseudoRandomBytes(16, function (err, ivBuffer) {
var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ;
@vladfrangu
vladfrangu / LICENSE.txt
Created December 28, 2017 21:49 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE