Skip to content

Instantly share code, notes, and snippets.

View MLSci's full-sized avatar
💭
Preparing for the Turing test

MLSci

💭
Preparing for the Turing test
View GitHub Profile
@Ricky-Wilson
Ricky-Wilson / dictionary.py
Created March 14, 2014 08:19
Scrape word definitions from dictionary.com with python
#!/usr/bin/python
from bs4 import BeautifulSoup as bs
import re
from requests import get
class dictionary:
def remove_non_ascii(self,text):
return re.sub(r'[^\x00-\x7F]+','', text)
romaji hiragana
a
i
u
e
o
ka
ki
ku
ke

How to use this?

  1. Install the USB drivers for your device (Google has a list of some universal USB drivers here)
  2. Download the ADB binary for your particular OS (Windows, Mac, Linux)
  3. Extract the zip file into a folder that you can quickly access.
  4. On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
  5. Now enter Developer Options and find USB Debugging. Enable it.
  6. On your computer, browse to the directory where you extracted the ADB binary.
  7. Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
  8. Once you’re in the command
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@Webreaper
Webreaper / docker-compose.yml
Last active March 27, 2025 19:41
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
@bistaumanga
bistaumanga / media_outlets_bias_mbfc_oct2020.csv
Last active November 8, 2022 23:43
Media outlets bias and factuality from MBFC (oct 2020)
title country mbfc_page bias_raw Factual Ideology url
Alliance for Justice (AFJ) USA left left8 High L https://www.afj.org/
Act.TV USA left left4 MostlyFactual L http://act.tv
ACHNews USA left left8 MostlyFactual L https://achnews.org/
AlterNet USA left left2 Mixed L https://www.alternet.org/
Al DIA USA left left4 Mixed L https://aldianews.com
Aftonbladet Sweden left left9 Mixed L https://www.aftonbladet.se
Alt News India left left10 High L https://www.altnews.in
Amandla South Africa left left7 High L http://aidc.org.za/amandla-media/
ANX Media (American News X) USA left left3 Mixed L http://anx.media/
---
apiVersion: v1
kind: ConfigMap
metadata:
name: recyclarr
namespace: media
data:
recyclarr.yaml: |
sonarr:
sonarr-main: