Skip to content

Instantly share code, notes, and snippets.

View MehdiKhoshnevisz's full-sized avatar
🪖

Mehdi Khoshnevis MehdiKhoshnevisz

🪖
View GitHub Profile
@Jamesits
Jamesits / ubuntu_enable_bbr.sh
Last active December 13, 2022 22:27
Ubuntu enable BBR
#!/bin/bash
set -eu
SYSCTL_FILE=/etc/sysctl.d/90-tcp-bbr.conf
# check root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@AVGP
AVGP / wat.js
Created September 6, 2017 22:17
ffmpeg.js converting webm from a media recorder into mp4
var ffmpeg = require('ffmpeg.js/ffmpeg-mp4.js')
document.querySelector('button').addEventListener('click', (evt) => {
document.querySelector('[camera]').setAttribute('animation', {
property: 'rotation',
to: '0 360 0',
dur: 10000,
easing: 'linear'
})
@kxfeng
kxfeng / install_bbr_on_ubuntu.sh
Last active March 25, 2023 11:12
install bbr on ubuntu
# download linux kenel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-headers-<version>_all.deb
wgte http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-headers-<version>-generic_<version>_arm64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-image-<version>-generic_<version>_amd64.deb
# intsall linux kenel
sudo dpkg -i *.deb
# unintsall old kenel
dpkg -l|grep linux-image
@matinzd
matinzd / cloud-init.yml
Last active June 11, 2023 20:17
Configuring WhatsApp proxy using cloud-init on ubuntu
#cloud-config
package_update: true
package_upgrade: true
packages:
- ca-certificates
- curl
- gnupg