Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Nick Pralle Nike-Prallow

🎯
Focusing
View GitHub Profile
@Nike-Prallow
Nike-Prallow / search-for-primes.py
Last active Mar 24, 2021 — forked from adsworth/search-for-primes.py
corrected multi process version of the prime number counter from https://www.youtube.com/watch?v=hGyJTcdfR1E
View search-for-primes.py
import multiprocessing as mp
import time
import pandas as pd
def chunks(seq, chunks):
size = len(seq)
start = 0
for i in range(1, chunks + 1):
stop = i * size // chunks
@Nike-Prallow
Nike-Prallow / cloudflare-update-record.sh
Last active Apr 18, 2020 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)