Skip to content

Instantly share code, notes, and snippets.

@luizcalaca
luizcalaca / git-alias-pretty-formats.md
Last active May 19, 2024 00:07
Git configuration: alias and console formatting

Git configuration

How to configure several alias and formatting the git console

https://git-scm.com/docs/pretty-formats

Edit configuration file

git config --list
git config core.editor code (configuring to use VsCode)
git config --global --edit (After you call to edit)
@Ravarcheon
Ravarcheon / spectralRotation.py
Created May 18, 2024 13:23
rotates an audio file by 90 degrees in the spectrum while being a reversible process with minimal loss (only floating point errors which are like -150 dB but thats literally silence ahaha~)
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
def rotateSignal(signal,flip):
if flip:
signal = signal[::-1]
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft
rotSig = np.real(ifft(x))
@leyafo
leyafo / schema.sql
Last active May 19, 2024 00:05
slippod sql schema
CREATE TABLE IF NOT EXISTS cards (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
entry TEXT NOT NULL,
created_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL,
updated_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL
);
CREATE VIRTUAL TABLE IF NOT EXISTS cards_fts USING fts5(
entry,
content='cards',
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active May 18, 2024 23:54
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active May 18, 2024 23:54
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@rebane2001
rebane2001 / plot_discord_predictions.py
Last active May 18, 2024 23:54
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
"""
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it.
You may need to install matplotlib first:
pip install -U matplotlib
thrown together by rebane2001

Lots of stuff going on in my personal life the last few months. An immediate family member went from completely independent, at the end of February, to bedridden in a two week span and given a death sentence diagnoses. Part of their wishes was minimal people knowing/visiting during the process, but they passed this Monday and the obituary was published today (Some people I know IRL know *this* is me so I couldn't post any of this before). They were a huge part of my life, a central part of my entire family, all my friends knew them, and I had seen them nearly daily since I stopped traveling for work three years ago. So this is a huge event for me. A few people in the PS community knew about it because I didn't have time to try and make some made up excuse for my absence the times I was able pop online the last few months, I appreciate they kept it to themselves (If they did... I haven't been around to see if they did).

Add to this there's been a local "natural" disaster on their property, that I'm now part

@bradtraversy
bradtraversy / terminal-commands.md
Last active May 18, 2024 23:49
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@c-neto
c-neto / clone-all-repos-github.sh
Last active May 18, 2024 23:47
Clone all repositories on github by Username
#!/bin/bash
# This script clones all GitHub repositories of a specific user.
#
# Command Execution Example:
# ./clone-all-repos-github.sh <USERNAME> [<URL_TYPE>]
#
# Arguments:
# <USERNAME> GitHub username whose repositories will be cloned.
# [<URL_TYPE>] is optional and can be "ssh_url" (default value) or "clone_url".