Skip to content

Instantly share code, notes, and snippets.

View iUsmanN's full-sized avatar
💻

Usman Nazir iUsmanN

💻
  • The Guardian
  • London
View GitHub Profile
@iUsmanN
iUsmanN / ViewController.swift
Created August 2, 2019 09:25
Uses iOS AV Audio Engine to record and play sounds from the mic
/// Originally Created by Tadashi on 2017/03/02.
/// Commented by Usman Nazir
//IMPT
//ADD A INDICATOR VIEW TO THE SCREEN AND LINK HERE TO AVOID CRASHES ALONG WITH A PLAY AND RECORD BUTTON
import UIKit
import AVFoundation
import AudioToolbox
@debashisbarman
debashisbarman / forwardport.sh
Created May 15, 2020 10:43 — forked from Bostonncity/forwardport.sh
Forward port 80 to 8080 on EC2 instance.
sudo iptables -t nat -L
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000