Skip to content

Instantly share code, notes, and snippets.

View i3p9's full-sized avatar
🐢
speed

Fahim i3p9

🐢
speed
View GitHub Profile
@i3p9
i3p9 / openwrt_wireless.sh
Last active August 31, 2015 06:10 — forked from ruzickap/openwrt_wireless.sh
OpenWrt WiFi configuration tweaks
uci set wireless.radio0.channel=8
uci set wireless.radio0.htmode=HT40-
uci set wireless.radio0.noscan=1
uci set wireless.radio0.bursting=1
uci set wireless.radio0.ff=1
uci set wireless.radio0.compression=1
uci set wireless.radio0.xr=1
uci set wireless.radio0.ar=1
uci set wireless.radio0.txpower=20
tracert sgp-1.valve.net >> C:\tracert.txt
for /r %%f in (*.avi) do (
echo>>blah.txt file '%%~nxf'
)
ffmpeg -f concat -i blah.txt -c copy output.avi
# AdBlock for iOS DNS Proxy rules
# https://itunes.apple.com/us/app/adblock/id691121579
# Exported 10 Nov 2017 at 14:18:37 with AdBlock v4.1
Chinese Adservers/A8/a8.com
Chinese Adservers/A8/a8.net
Chinese Adservers/Apple Daily/intowow.applefeed.com.tw
Chinese Adservers/B-Media Asia/adex.bmediaasia.com
Chinese Adservers/B-Media Asia/adex2.bmediaasia.com
Chinese Adservers/Baidu/cb.baidu.com
@i3p9
i3p9 / hyper-settings-backup
Last active July 2, 2019 21:42
Hyper Backup
We couldn’t find that file to show.
@i3p9
i3p9 / MainActivity.java
Last active November 12, 2019 13:56
Volley Parsing (ListView)
public class MainActivity extends AppCompatActivity {
//private TextView result;
private RequestQueue rqueue;
private ArrayList<String> items;
private ArrayAdapter<String> itemsAdapter;
private ListView lvItems;
protected void onCreate(Bundle savedInstanceState) {
lvItems = (ListView) findViewById(R.id.listitems);
//result = findViewById(R.id.view_parsed);
Some alternative programming languages to Python are C, C++, Perl, Fortran and Java.
@i3p9
i3p9 / scraper_all_final.py
Last active April 12, 2020 16:21
Scraping covid 19 case data from worldmetrics (bangladesh)
import requests
from bs4 import BeautifulSoup
import re
URL = 'https://www.worldometers.info/coronavirus/country/bangladesh' #change the url for other countries
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser') #makes a soup bs object
results = soup.find(class_='content-inner')
cases =results.find_all('div', class_=('maincounter-number'))
@i3p9
i3p9 / archive.conf
Created September 17, 2020 20:45
Youtube-dl Archiving channels
-i
-o "%(upload_date)s - %(title)s - [%(resolution)s] [%(id)s].%(ext)s"
--download-archive archive.txt
-a channels.txt
--prefer-ffmpeg
--merge-output-format mkv
--add-metadata
@i3p9
i3p9 / com.i3p9.wifigone.plist
Created December 16, 2020 21:12
launchd plist to Turn wifi off on startup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/sbin</string>
</dict>
<key>Label</key>