Skip to content

Instantly share code, notes, and snippets.

stgoh kevingoh

  • ITS-Industrial Turbine Services GmbH
  • Austria
View GitHub Profile
View gist:1cf05ff11507360f970252bc92abffd6
Borrowed from:
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute.
1. Download a single file from the Internet
2. Download a file but save it locally under a different name
wget ‐‐output-document=filename.html
kevingoh / Python PDF Password
Created May 23, 2019 — forked from mrpollo/Python PDF Password
Python PDF Password cracker
View Python PDF Password
from pyPdf import PdfFileWriter, PdfFileReader
import random
from pprint import pprint as pp
import sys
# sys.setrecursionlimit(10000000)
seed = 'BN9F'
pile = [1]
def getNumber():
View CoreML Image
This is a demo of how you can use the CoreML framework (via objc_util) to classify images in Pythonista. It downloads the trained 'MobileNet' CoreML model from the Internet, and uses it to classify images that are either taken with the camera, or picked from the photo library.
import requests
import os
import io
import photos
import dialogs
kevingoh /
Created Apr 20, 2019 — forked from JMV38/
import ui, io, gc
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image as PILImage
from PIL import ImageChops as chops
from ImageColor import getrgb
import console, math, random, ImageMath
from time import time
import objc_util
You can’t perform that action at this time.