Skip to content

Instantly share code, notes, and snippets.

View wyhinton's full-sized avatar
💭
🦀 Emerging Rustacean 🦀

Webb Hinton wyhinton

💭
🦀 Emerging Rustacean 🦀
View GitHub Profile
@frolleks
frolleks / DECOMPILING_AN_ELECTRON_APP.md
Last active May 22, 2024 20:12
How to decompile an Electron app

Let me tell you how easy it is to decompile an Electron app (that's closed source).

Prerequisites

Decompilation

First of all, you find the install path of your Electron app. If you found it, find the resources folder. If you found it, you'll have to install asar globally, by running:

@KRRISH96
KRRISH96 / RenderSmoothImage.jsx
Last active January 22, 2023 16:52
A React component to render images smoothly.
// RenderSmoothImage.jsx
import React from "react";
import './styles.scss';
export default ({ src, alt = "notFound", objectFit = "contain" }) => {
const [imageLoaded, setImageLoaded] = React.useState(false);
const [isValidSrc, setIsValidSrc] = React.useState(!!src);
return (

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@patarapolw
patarapolw / Google Sheets API for TypeScript.ts
Last active March 14, 2024 15:38
Google Sheets API for TypeScript
// yarn add googleapis@27 @types/node
import fs from "fs";
import readline from "readline";
import {google} from "googleapis";
import { OAuth2Client } from "google-auth-library";
const CRED_PATH = "secret/credentials.json";
const TOKEN_PATH = "secret/token.json";
const SCOPES = ["https://www.googleapis.com/auth/spreadsheets.readonly"];
@benwurth
benwurth / BasicEqualizerGenerator.jsx
Created September 21, 2013 00:33
A simple script for Adobe After Effects that generates 10 separate null objects with keyframe data for different audio frequency bands. You can then use these nulls to set up a responsive graphical equalizer (frequency analyzer).
{
//Begin Undo group
app.beginUndoGroup("Generate Graphical Equalizer");
/*Variables:*/
//How far apart each null is placed across the screen
var nullPlacementWidth = 0;
//Creates a variable that holds the selected comp
var curItem = app.project.activeItem;
//Creates an array that stores the lowpass values and the highpass values