Skip to content

Instantly share code, notes, and snippets.

@thecodewarrior
thecodewarrior / iTunesDisable.sh
Last active April 16, 2018 22:39
Two scripts to completely disable and reenable iTunes on macOS - http://bit.do/iTunesDisable
#!/bin/sh
echo "Clearing executable bit for iTunes binary"
sudo chmod ugo-x /Applications/iTunes.app/Contents/MacOS
@thecodewarrior
thecodewarrior / a_original.js
Created April 22, 2018 19:48
The JS from http://jsfiddle.net/hakim/Ht6Ym/ obfuscated with https://github.com/thecodewarrior/javascript-obfuscator using the various identifier names generators
var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
document.body.style['MozPerspective'] !== undefined;
function linkify( selector ) {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( selector );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
http://www.falstad.com/ripple/Ripple.html
the format for the import/export from text
$ 1 <resolution> <A> ? <wave type> <brightness> <scale factor>
// World start, each side is <resolution> units long
// <resolution>/<A> ~= 8
// 65.2*<scale factor> ~= world side length
import net.minecraftforge.gradle.user.TaskSourceCopy
import net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension
import net.minecraftforge.gradle.user.patcherUser.forge.ForgePlugin
import org.gradle.api.internal.HasConvention
import org.gradle.internal.impldep.bsh.commands.dir
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
import org.jetbrains.kotlin.contracts.model.structure.UNKNOWN_COMPUTATION.type
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformJvmPlugin
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
#!/usr/bin/env python
# copy into the gimp console until I make it any more proper
unifont_image = gimp.image_list()[0]
unifont_main_layer = unifont_image.layers[0]
print("Converting to RGB...")
pdb.gimp_image_convert_rgb(unifont_image)
pdb.gimp_image_resize(unifont_image, 4096, 4096, -32, -64)
@ durak > Also using Arch in an office sounds like an IT disaster.
> Just wait until pacman breaks something right before a major deadline.
> Also they can't make anyone set up Arch on their own time, can they?
> So they're just wasting company money.
> It'd be cheaper to buy everyone MacBooks than pay engineers for a week to get Arch all set up
@ Jay > yeah it actually would
> hell, windows 98 would be more safe than arch
> or any other linux distro
@ veksen > It's no mystery that companies just handout Macbooks
> shit just works
@thecodewarrior
thecodewarrior / BeeMovieAllDay.java
Last active August 10, 2018 08:45
What would happen if every identifier was the bee movie? 🤔
// take every occurance of `zz` and replace it with the entirety of the bee
// movie script, which every non-alphanumeric character replaced with `_`
// the end result is below, which compiles and runs despite the ludicrous names
public class BeeMovieAllDay {
public static void main(String[] zz) {
BeeMovieAllDay zz1 = new BeeMovieAllDay();
zz1.zz3();
}
@thecodewarrior
thecodewarrior / comparison.gif
Last active March 1, 2023 10:23
CurseForge logo SVG
comparison.gif
@thecodewarrior
thecodewarrior / App Icon Template.svg
Last active December 9, 2025 17:38
An SVG template for creating macOS app icons, including guides and the standard drop shadow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thecodewarrior
thecodewarrior / AutoTwitchBonus.js
Last active May 30, 2024 15:15
Automatically collect channel bonus points
// ==UserScript==
// @name Auto Twitch Bonus
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Automatically collect channel points
// @author thecodewarrior
// @match https://www.twitch.tv/*
// @downloadURL https://gist.githubusercontent.com/thecodewarrior/00e5654956eee23fcc2e8baae634ad2c/raw/AutoTwitchBonus.js
// ==/UserScript==