Skip to content

Instantly share code, notes, and snippets.

:octocat:

Nathaniel Fredericks nathfreder

:octocat:
Block or report user

Report or block nathfreder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nathfreder
nathfreder / worker.js
Last active Oct 22, 2019
Cloudflare Worker for downloading high resolution images from VSCO
View worker.js
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleVsDotCo(url) {
const response = await fetch(url)
const text = await response.text()
const mediaUrlRegex = /<meta property="og:image" content="(.*)\?.*">/
const mediaUrl = mediaUrlRegex.exec(text)[1]
View INSTRUCTIONS.md

Instructions

  1. Open AST explorer
  2. Add sample code of what your trying to detect. For the purpose of these instructions, I'm going to detect Item->getCompoundTag(). step 2
  3. Select the little bit of code you want to detect and keep note of it's kind and name. step 3
  4. Copy and paste v000Check.ts to your check file you created earlier on.
  5. Replace NODE_NAME with the node's name attribute (you might have to convert the function name to camel case)
  6. Replace NODE_KIND with the node's kind attribute
  7. On line 17, replace MESSAGE with the error you want people to see
@nathfreder
nathfreder / ContentView.swift
Last active Oct 2, 2019
SwiftUI in Swift Playgrounds
View ContentView.swift
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
Text("Hello World")
}
}
PlaygroundPage.current.liveView = UIHostingController(rootView: ContentView())
@nathfreder
nathfreder / apple-com.txt
Created May 22, 2019
[apple.com] CT Exposer results
View apple-com.txt
[+]: Downloading domain list...
[+]: Download of domain list complete.
[+]: Parsed 1903 domain(s) from list.
[+]: Domains found:
17.149.240.71 2gactivation.apple.com
17.146.13.11 CoolJobs.Apple.com
17.137.184.106 Jobs.Apple.com
17.254.20.118 aacs.apple.com
17.137.161.85 aamt.apple.com
View code.py
# "Truth Meter" Code, by Alexander Petkov
import time
import board
import pulseio
import random
import sys
from adafruit_circuitplayground.express import cpx
# Setting variable for where on board the electrical signal for the servo will come from
servo = pulseio.PWMOut(board.A2, frequency=50)
View log_temp.py
from gpiozero import CPUTemperature
from time import sleep
import requests
cpu = CPUTemperature()
def log_temp(temp):
requests.post('https://tunnel.nathfreder.dev/api/temperatures', data = {'temperature':temp})
while True:
View secure-docker-daemon.sh
#!/bin/bash
#
# curl -sS http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/gateway
#
# Docker Daemon as default ag without communication
# only works via Unix socket.
# Docker Client and Daemon on HTTPS
# TLS must be activated to establish secure communication.
# Secure communication between client and serve/daemon
# need for client and server certifications
View How to generate a username.md

How to generate a username for MCPE players

  1. For ?% chance, add the prefix xX and suffix Xx
  2. Choose a random item/mechanism/entity name from MCPE
  3. Choose a random word from the dictionary
  4. For ?% chance, choose a random from common given names
  5. For ?% chance, add the words girl or cute or cool or kid or boy
  6. For ?% chance, add the word MCPE
  7. For ?% chance, add the word Itz or Its
  8. For 99% chance, change all occurrences of s to z to make it sound like more professional/special while it isn't at all
@nathfreder
nathfreder / run.php
Created Mar 19, 2019 — forked from dktapps/run.php
A basic UDP proxy used to bypass client-side Xbox Live authentication in MCPE 1.2.
View run.php
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
View keybase.md

Keybase proof

I hereby claim:

  • I am nathfreder on github.
  • I am nathfreder (https://keybase.io/nathfreder) on keybase.
  • I have a public key whose fingerprint is E92A 596E 94F2 0E0E 9A33 B73B ACED BD1E 6DC5 258F

To claim this, I am signing this object:

You can’t perform that action at this time.