Skip to content

Instantly share code, notes, and snippets.

View codepo8's full-sized avatar

Christian Heilmann codepo8

View GitHub Profile
@codepo8
codepo8 / developerdna.md
Last active November 13, 2023 00:26
Developer DNA CODE100 Puzzle

Puzzle: Developer DNA

Welcome to another CODE100 puzzle. The challenge is to take this JSON dataset:

{
    "cols": 30,
    "sine": [
     "-0.93", "-0.60", "-0.33", "-0.13", "0.00",
     "0.00", "-0.13", "-0.33", "-0.60", "-0.93"
@codepo8
codepo8 / codeblock-puzzle.md
Last active November 8, 2023 13:01
Code100 Puzzle: Code Block

Puzzle: Event Block

The challenge here is to turn this JSON object:

{
    "columns": 80,
    "padChar": "·",
    "events": [
 { "name": "CODE100", "location": "Zagreb, Croatia", "date": "29.11.2023" },
@codepo8
codepo8 / midjourney-ban-list.json
Created September 12, 2023 11:37
Midjourney banned words
{
"Gore": [
"Blood", "Bloodbath", "Crucifixion", "Bloody", "Flesh", "Bruises", "Car crash", "Corpse", "Crucified", "Cutting", "Decapitate", "Infested", "Gruesome", "Kill (as in Kill la Kill)", "Infected", "Sadist", "Slaughter", "Teratoma", "Tryphophobia", "Wound", "Cronenberg", "Khorne", "Cannibal", "Cannibalism", "Visceral", "Guts", "Bloodshot", "Gory", "Killing", "Surgery", "Vivisection", "Massacre", "Hemoglobin", "Suicide", "Female Body Parts"
],
"Drugs": [
"Drugs", "Cocaine", "Heroin", "Meth", "Crack"
],
"Clothing": [
"no clothes", "Speedo", "au naturale", "no shirt", "bare chest", "nude", "barely dressed", "bra", "risqué", "clear", "scantily", "clad", "cleavage", "stripped", "full frontal unclothed", "invisible clothes", "wearing nothing", "lingerie with no shirt", "naked", "without clothes on", "negligee", "zero clothes"
],
@codepo8
codepo8 / adblocker-detect.js
Created November 14, 2022 23:54
Adblocker detection found in the wild
function hab() {
var t = document.createElement('div');
t.innerHTML = ' ';
t.className = 'ad doubleclick google-ad adsbox pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads skyscraper text-ad-links';
var e = !(t.style = 'width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;');
try {
document.body.appendChild(t);
var a = document.getElementsByClassName('adsbox')[0];
if (0 !== a.offsetHeight && 0 !== a.clientHeight || (e = !0), void 0 !== window.getComputedStyle) { var d = window.getComputedStyle(a, null); !d || 'none' != d.getPropertyValue('display') && 'hidden' != d.getPropertyValue('visibility') || (e = !0) } document.body.removeChild(t)
}
var tryCount = 0;
var minimalUserResponseInMiliseconds = 200;
function check() {
console.clear();
before = new Date().getTime();
debugger;
after = new Date().getTime();
if (after - before > minimalUserResponseInMiliseconds) {
document.write(" Dont open Developer Tools. ");
self.location.replace(window.location.protocol + window.location.href.substring(window.location.protocol.length));
@codepo8
codepo8 / reset.md
Created October 8, 2022 07:06
Reset WLAN in train

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z

openssl rand -hex 6 | sed 's/(..)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether