Skip to content

Instantly share code, notes, and snippets.

View redbug312's full-sized avatar
🎃
Any pun-pkin?

redbug312

🎃
Any pun-pkin?
  • Foxtronev
  • New Taipei City, Taiwan
  • 03:02 (UTC +08:00)
View GitHub Profile
@adrianolsk
adrianolsk / fix-microphone-background-noise.sh
Last active September 29, 2022 06:42
FIx linux microfone background noise
# Microphone Realtime background noise reduction script
# author Luigi Maselli - https://grigio.org licence: AS-IS
# credits: http://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio
# run as: sudo && pulseaudio -k
# wget -qO - https://gist.github.com/adrianolsk/bfa32f3227dc674eff72a2008f6c0316 | sudo bash && pulseaudio -k
sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bak
sudo cat <<EOT >> /etc/pulse/default.pa
load-module module-echo-cancel source_name=noechosource sink_name=noechosink
anonymous
anonymous / main.rb
Created September 1, 2016 13:26
require 'net/https'
require 'json'
require 'openssl'
=begin
UUID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
OS = "<OS NAME> <VERSION> - <ARCH>"
USERNAME = "YOUR USERNAME"
PASSWORD = "YOUR PASSWORD"
TARGET_FONT = "jf-jinxuan-Medium"
@lancejpollard
lancejpollard / node-folder-structure-options.md
Created November 28, 2011 01:50
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@marcetcheverry
marcetcheverry / mapread.c
Created May 25, 2011 14:05
mmap and read/write string to file
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
int main(int argc, const char *argv[])
{