Skip to content

Instantly share code, notes, and snippets.

View usworked's full-sized avatar
🤒
Out working

Ubaid Seth usworked

🤒
Out working
  • Tejas
View GitHub Profile
@usworked
usworked / sync.py
Created October 24, 2023 22:34 — forked from joaoreboucas1/sync.py
Command-line tool in Python that synchronizes a funk beat into a song (must be .wav format)
from math import floor
from pathlib import Path
import sys
import os
import numpy as np
import librosa
import librosa.beat
import soundfile as sf
def synchronize(file_path_1, file_path_2, output_path="mashup.wav", second_iteration=False):
@usworked
usworked / setupDebianHostname.txt
Created January 21, 2021 14:38
How to quickly setup Debian /etc/hostname and /etc/hosts
/etc/hostname and /etc/hosts are simple, but also not so simple...
How to quickly setup Debian /etc/hostname and /etc/hosts
1) Edit /etc/hostname.
There are 2 valid ways to set this up.
Either make it:
machine, i.e. a simple, one word name for this processor.
@usworked
usworked / freeUpRam.sh
Created January 11, 2021 16:26
Free Up Ram (linux)
sync
sudo sync
sudo sh -c "/bin/echo 3 > /proc/sys/vm/drop_caches"
@usworked
usworked / turn_off_wifi_power_management
Last active April 5, 2020 19:58
Disable Wifi Power Management in Ubuntu 16/18
sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
[connection]
wifi.powersave = 3
Change value to 2. Reboot for the change to take effect.
---
Possible values for the wifi.powersave field are:
import glob
import os, random
import sys
import math
from datetime import datetime
from prompt_toolkit.shortcuts import button_dialog
#from random import seed
import sox
from pydub import AudioSegment
from pydub.silence import split_on_silence
@usworked
usworked / eOS_superWindowsKey.txt
Created September 29, 2018 13:04
elementary OS - assign windows/super key to open Applications
#Type this in terminal (don't use SUDO)
gsettings set org.gnome.mutter overlay-key "'Super_L'"
gsettings set org.pantheon.desktop.gala.behavior overlay-action "'wingpanel --toggle-indicator=app-launcher'"