Skip to content

Instantly share code, notes, and snippets.

View TheSalarKhan's full-sized avatar
💭
I may be slow to respond.

Muhammad Salar Khan TheSalarKhan

💭
I may be slow to respond.
View GitHub Profile
@TheSalarKhan
TheSalarKhan / wat.js
Created June 27, 2020 08:49 — forked from AVGP/wat.js
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'
})
@TheSalarKhan
TheSalarKhan / gist:3cc8e61ee303cc032f4b62021722f3aa
Created January 11, 2021 14:16
Command to set DSCP flag on outgoing UDP packets
# iptable command to set DSCP flag on outgoing udp packets
iptables -t mangle -A OUTPUT -p udp -j DSCP --set-dscp-class ef
@TheSalarKhan
TheSalarKhan / DeepLearningAI-W3A1.ipynb
Last active January 28, 2021 22:58
Deeplearning.ai week3 assignment 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sudo swapon --show
sudo fallocate -l 1G /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
sudo swapon --show