Skip to content

Instantly share code, notes, and snippets.

View paramsiddharth's full-sized avatar
❤️
For the mother's pride, for the times I cried, got to stay alive. I'll survive.

Param Siddharth paramsiddharth

❤️
For the mother's pride, for the times I cried, got to stay alive. I'll survive.
View GitHub Profile
@simlei
simlei / bt_conn_up.expect
Last active October 9, 2025 08:17
Reconnect bluetooth on raspbian, using PulseAudio pactl and expect
#!/usr/bin/expect -f
# from: https://gist.github.com/RamonGilabert/046727b302b4d9fb0055
set prompt "#"
set address [lindex $argv 0]
set timeout 20
spawn sudo bluetoothctl
# expect -re $prompt
send "connect $address\r"
@maxxhaxx
maxxhaxx / eqapo_pubg.md
Last active October 2, 2024 20:14
Equalizer APO guide (PUBG)

Why?

Equalizer APO is a free software which adds zero delay to your audio latency. Some users experience noticable audio latency delays when using programs like Voicemeeter Banana, so this is a better option for gaming in my opinion. Some prefer the software called Peace Equalizer which is simply a interface for Equalizer APO, but it will limit your options for more advanced usage.

PUBG is known for causing hearing damage over time if played at a high volume, and Equalizer APO gives you a lot of options to lower your in game sounds without loosing the ability to hear footsteps.

Install Equalizer APO

Download Equalizer APO, and start the .exe file to go to setup wizard.
image

Click Next and Agree until you are asked to select the device to install APO for.

@krisalyssa
krisalyssa / readme.txt
Last active June 14, 2025 22:31 — forked from rkttu/readme.txt
Ubuntu 20.10 + WSL 2 + XRDP PulseAudio
# Credits
# https://c-nergy.be/blog/?p=13655
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
# https://gist.github.com/rkttu/35ecab5604c9ddc356b0af4644d5a226
# First, you should install XRDP and X11 Desktop Environment first.
@mingderwang
mingderwang / hardhat.config.js
Created January 14, 2021 06:42
hardhat.config.js use ganache as default network (example)
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('@nomiclabs/hardhat-ethers');
require('@openzeppelin/hardhat-upgrades');
module.exports = {
defaultNetwork: "ganache",
networks: {
ganache: {
url: "http://172.17.144.1:7545",
This file has been truncated, but you can view the full file.
Page 1
A
account:
A
accelerator: date, design, do, replicate, say, start

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@mrtcmn
mrtcmn / workaround.css
Created November 27, 2020 15:04
firefox backdrop-filter workaround
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.blurred-container {
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
}
/* slightly transparent fallback for Firefox (not supporting backdrop-filter) */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
.blurred-container {
@abobija
abobija / esp-idf-on-wsl2.md
Last active September 14, 2025 01:42
ESP-IDF on WSL2 - Build, Flash and Monitor

ESP-IDF on WSL2 - Build, Flash and Monitor ⚡

Demo

How to setup ESP-IDF on WSL2 Ubuntu 20.04 - Config, Build and Flash

Intro

WSL2 still does not support USB devices, but with a little effort we can make possible to flash and monitor ESP device from WSL2.

@DARK-art108
DARK-art108 / Linked_List.cpp
Created October 29, 2020 15:15
Singly Linked List Implementation in C++
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define ff first
#define ss second
#define in cin
#define out cout
#define int long long
@coderofsalvation
coderofsalvation / playaudio.ps1
Created October 28, 2020 10:16
hasslefree playing mp3 wav audio in Windows 10 WSL
#!/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -noexit
# Play a single file
# Usage:
# LINUX: timeout 5 ./playaudio.ps1 "c:\Users\Leon\Downloads\bensound-allthat.mp3" &>/dev/null &
# CMD.EXE: powershell.exe -noexit ./playaudio.ps1 "c:\Users\Leon\Downloads\bensound-allthat.mp3"
Add-Type -AssemblyName presentationCore
$mediaPlayer = New-Object system.windows.media.mediaplayer
$mediaPlayer.open( $args[0] )
$mediaPlayer.Play()