Skip to content

Instantly share code, notes, and snippets.

View iSWORD's full-sized avatar
:shipit:

Muha Ajjan iSWORD

:shipit:
View GitHub Profile
@iSWORD
iSWORD / ggd-afs.py
Last active February 13, 2024 09:36
GGD Reisvaccinaties Afspraak
import requests
import re
import time
import datetime
def get_page():
url = 'https://www.ggdreisvaccinaties.nl/afspraak-maken'
headers = {
@iSWORD
iSWORD / cities.json
Created December 20, 2022 20:20 — forked from joshgeller/cities.json
1000 Largest US Cities By Population With Geographic Coordinates and Timezone, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.80%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": 8405837,
"rank": 1,
"state": "New York",
"timezone": "America/New_York"
@iSWORD
iSWORD / crawler.py
Created October 19, 2019 13:46
Tumblr audio posts crawler using Tumblr API v1 & Python 3 - API docs at https://www.tumblr.com/docs/en/api/v1#api_read
#!/usr/bin/env python3
import requests, json, sqlite3
from xml.etree import ElementTree as ET
from urllib.parse import urlparse, parse_qs
blog_domain = 'tracks.tumblr.com' # change this
post_type = 'audio' # leave empty for all post types
posts_per_request = 50 # max is 50
@iSWORD
iSWORD / wp-facebook-like-button-snippet.php
Last active July 27, 2019 17:59
Facebook Like button code snippet for WordPress
<?php
add_filter('the_content', function ($content) {
$combine_fn = function ($glue, $pattern, $array) {
return implode($glue, array_map(function ($value, $key) use ($pattern) {
$ret = $pattern;
$ret = str_replace('{$key}', $key, $ret);
$ret = str_replace('{$value}', $value, $ret);
@iSWORD
iSWORD / list.txt
Created November 9, 2018 11:34
Mojave 10.14.1 App Store Files
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/SecureBoot.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/EmbeddedOSFirmware.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/macOSUpd10.14.1Patch.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/macOSUpd10.14.1.RecoveryHDUpdate.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/FirmwareUpdate.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/FullBundleUpdate.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/macOSBrain.pkg.integrityDataV1
swcdn.apple.com/content/downloads/46/29/091-99992/6qr5ncwub6vmlm9o0udlmml5n861n9c9gr/macOSUpd10.14.1.pkg.integrityDataV1
swcdn.apple.com/content/downloads/35/53/0
@iSWORD
iSWORD / 20180928.txt
Last active September 28, 2018 23:23
Google Compute Engine IP Ranges (2018-09-28)
8.34.208.0/20,8.35.192.0/21,8.35.200.0/23,108.59.80.0/20,108.170.192.0/20,108.170.208.0/21,108.170.216.0/22,108.170.220.0/23,108.170.222.0/24,35.224.0.0/13,162.216.148.0/22,162.222.176.0/21,173.255.112.0/20,192.158.28.0/22,199.192.112.0/22,199.223.232.0/22,199.223.236.0/23,23.236.48.0/20,23.251.128.0/19,35.204.0.0/14,35.208.0.0/14,107.167.160.0/19,107.178.192.0/18,146.148.2.0/23,146.148.4.0/22,146.148.8.0/21,146.148.16.0/20,146.148.32.0/19,146.148.64.0/18,35.203.0.0/17,35.203.128.0/18,35.203.192.0/19,35.203.240.0/20,130.211.8.0/21,130.211.16.0/20,130.211.32.0/19,130.211.64.0/18,130.211.128.0/17,104.154.0.0/15,104.196.0.0/14,208.68.108.0/23,35.184.0.0/14,35.188.0.0/15,35.202.0.0/16,35.190.0.0/17,35.190.128.0/18,35.190.192.0/19,35.235.224.0/20,35.192.0.0/14,35.196.0.0/15,35.198.0.0/16,35.199.0.0/17,35.199.128.0/18,35.200.0.0/15,35.212.0.0/16,35.190.224.0/20,35.232.0.0/15,35.234.0.0/16,35.235.0.0/17,35.235.192.0/20,35.236.0.0/14,35.240.0.0/15,35.203.232.0/21,130.211.4.0/22,35.220.0.0/14,35.242.0.0/15,35.244.0.0/
@iSWORD
iSWORD / create-tlds.sh
Created June 20, 2018 08:46
.laravel + .localhost TLDs with dynamic nginx configuration
echo 'address=/localhost/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/development-tlds > /dev/null
echo 'address=/laravel/127.0.0.1' | sudo tee -a /etc/NetworkManager/dnsmasq.d/development-tlds > /dev/null
sudo service NetworkManager reload
@iSWORD
iSWORD / shuffle.js
Last active February 15, 2023 20:11
Shuffle & Unshuffle an Array in JavaScript & Swift
// Functions
let shuffle = (inArr, seed, unshuffle = false) => {
let outArr = Array.from(inArr),
len = inArr.length
let swap = (a, b) => [outArr[a], outArr[b]] = [outArr[b], outArr[a]]
for (
#!/usr/bin/python2
import sys, fontforge, string
allowed_chars = string.printable # ascii (32 -> 126)
if len(sys.argv) == 3:
font = fontforge.open(sys.argv[1])
for char in allowed_chars.decode("UTF-8"):
font.selection[ord(char)] = True
# https://youtu.be/RTSGm-a0h1Q
from gi.repository import Gtk, Gdk
from scipy import misc
import serial
FILENAME = '/home/isword/Pictures/jb.jpg'
DEVICE = '/dev/ttyACM0'
BAUDRATE = 115200