Skip to content

Instantly share code, notes, and snippets.

Hunter judge2020

Block or report user

Report or block judge2020

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
@judge2020
judge2020 / info.md
Last active Nov 19, 2019
qemu/libvirt fox for "There was an error connecting to the Apple ID server" (MacOS in a Virtual Machine)
View info.md

Recently, while setting up a personal MacOS VM using OSX-KVM, I came across an error trying to sign into the Mac App Store and iCloud saying "Validation Error. There was an error connecting to the Apple ID Server".

Many existing threads related to this issue, such as on the tonymacx86 forum, instruct you to make sure your ethernet device is on interface en0, but this was already a thing for my Virtual Machine, so I had to look elsewhere.

Thankfully, "jwegman" from the Unraid forums has instructions for a fix.

Basically, you need to replace the model type vmxnet3 with e1000-82545em, which makes Apple load a different Kext for intel ethernet devices.

    <interface type='bridge'>
@judge2020
judge2020 / generate-client.sh
Created Nov 2, 2019 — forked from Belphemur/generate-client.sh
Generate a new client configuration for WireGuard
View generate-client.sh
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
View stopabusegithubstar-eng.diff
-Most of the issues in this issue are Korean, so it would be right to reply in Korean.
-I am the owner of this project, and I am
-very grateful for your concern about our developers.
-However, I implicitly agreed to this promotion, which you thought badly and ridiculed, and
-even shared a link to my Facebook feed. I used to threaten my friends to press it once (?).
-Of course, I did not know that so many people would give me a star through this promotion.
-I thought this sudden rise would be like embarrassment and cheating.
@judge2020
judge2020 / Aworker.js
Created May 8, 2019
Cloudflare Workers: block proxy IPs
View Aworker.js
// Using a global variable so we aren't
// pulling from the proxy API on each
// and every subsequent request
// (note that the Workers billing still applies here)
//
// This could be "truly global" with KV but
// it's not really needed here unless the proxy list
// starts blocking CF ips.
//
//
@judge2020
judge2020 / cloudflare-hot-link-protection-with-stub.js
Last active Oct 1, 2019 — forked from vdbelt/cloudflare-hot-link-protection-with-whitelist.js
Cloudflare service worker hot link protection with whitelist
View cloudflare-hot-link-protection-with-stub.js
View README.md

"normalizes" an email to prevent multiple accounts being created for each email inbox. This would be ran on both register and login.

We don't DNS lookup gsuite because gsuite does not have the gmail "plus address" feature.

License:

Copyright 2019 github.com/judge2020

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@judge2020
judge2020 / cloudflare-ips-v4.txt
Last active Oct 1, 2019
Cloudflare comma-separated IPs
View cloudflare-ips-v4.txt
103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17
@judge2020
judge2020 / Embed.md
Created May 24, 2018
Embedding an image.
View Embed.md

Embedding an image in a GitHub Issue

Say you have an image at a url. i will use https://judge.sh/9SMwvoEM88.png for my example, but almost all direct link image urls will work.

In order to embed it, you must enter it with ![](imageurl), replacing imageurl with your image URL.

Example:

![](https://judge.sh/9SMwvoEM88.png)
@judge2020
judge2020 / privacy.txt
Created May 19, 2018
Corporate Clash privacy policy
View privacy.txt
Updated 5/19/2018
Text is bolded in this document not necessarily to emphasise, but to increase readability and navigation of the document.
Managing your data
We allow a user to request all information related to their account to be deleted upon request. A user may also request all of their information to be downloaded upon request.
View centos.sh
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
sed -i 's|#baseurl=http://mirror.centos.org/centos/$releasever|baseurl=http://vault.centos.org/5.11|' /etc/yum.repos.d/*.repo
You can’t perform that action at this time.