Skip to content

Instantly share code, notes, and snippets.

View piharpi's full-sized avatar

Harpi piharpi

View GitHub Profile
@piharpi
piharpi / fix-microphone-background-noise.sh
Created March 29, 2025 00:12 — forked from adrianolsk/fix-microphone-background-noise.sh
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
@piharpi
piharpi / .block
Created March 16, 2020 05:27 — forked from tvalentius/.block
HDI Indonesia Choropleth Map
border: no
license: MIT

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@piharpi
piharpi / devise.id.yml
Last active February 12, 2021 05:54 — forked from freeskys/devise.id.yml
A translation for devise >= 4.7.1 in indonesia
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
id:
devise:
confirmations:
confirmed: "Email anda telah berhasil dikonfirmasi."
send_instructions: "Anda akan menerima sebuah email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
send_paranoid_instructions: "Jika email anda telah terdaftar, anda akan menerima email dengan instruksi bagaimana cara untuk mengkonfirmasikan email anda."
failure:
already_authenticated: "Anda telah masuk."
@piharpi
piharpi / kill-jekyll.md
Created March 17, 2019 12:25 — forked from lukehedger/kill-jekyll.md
Kill Jekyll server

Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:

$ lsof -wni tcp:4000
$ kill -9 <PID of process>

And next time, use crtl-c to stop.