Skip to content

Instantly share code, notes, and snippets.

@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".
@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))
@Troplo
Troplo / office-install.sh
Last active May 18, 2024 23:45
Microsoft Office 365 & 2021 LTSC installation script for Wine on Arch Linux.
#!/bin/bash
echo "Welcome to Troplo's Microsoft Office installation script for WINE (Arch Linux, yay required)"
echo ""
echo "Known issues:"
echo "- Broken Microsoft login (good thing!)"
echo "- Doesn't receive feature updates due to Windows 7 EoL."
echo "- OneNote, and Teams don't work."
echo ""
install_prereq() {
@ixahmedxi
ixahmedxi / keybindings.json
Created January 2, 2024 20:46
Vscode neovim keybindings.json
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert && editorTextFocus",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
"key": "k",
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active May 18, 2024 23:41
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PixeyeHQ
PixeyeHQ / mdl_observer.nim
Last active May 18, 2024 23:37
On value change observer
from sugar import `=>`, `->`
export `->`, `=>`
type Wrapper[TSource, TProp] = ref object
source: TSource
val: TProp
prop: proc(arg: TSource): TProp
callback: proc(arg: TSource)
var storage = newSeq[proc()](0)
@rxaviers
rxaviers / gist:7360908
Last active May 18, 2024 23:34
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@adammacias
adammacias / README.md
Created November 27, 2020 14:36
+250 comandos para usar a Alexa em Portuguรชs

Conhecendo a Alexa

  1. Alexa, quais sรฃo suas habilidades mais populares?
  2. Alexa, quais sรฃo suas habilidades com jogos?
  3. Alexa, quais sรฃo suas habilidades domรฉsticas inteligentes?
  4. Alexa, que coisas posso experimentar?

Passatempos e datas

  1. Alexa, faz um beatbox
  2. Alexa, faz uma batida de funk
  3. Alexa, cante uma mรบsica
@4wk-
4wk- / README.md
Last active May 18, 2024 23:31
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)