Skip to content

Instantly share code, notes, and snippets.

@Tydus
Tydus / ifrename.sh
Last active October 29, 2017 12:09
Rename ethx and wlanx to persistent names for OpenWrt
#!/bin/sh
# ifrename.sh: rename ethx and wlanx to persistent names
# Dependency: ip ethtool
# See also: https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c
# TODO: currently only support pci-e devices
ip -br l | cut -d' ' -f1 | while read i; do
prefix=$(echo "$i" | cut -c-2)
@Tydus
Tydus / CookieMonster.js
Created December 19, 2019 14:16
CookieMonster.js
/**********
* Header *
**********/
CM = {};
CM.Backup = {};
CM.Cache = {};
@Tydus
Tydus / FortuneCookie.js
Last active October 13, 2023 18:33
FortuneCookie.js
Game.Win('Third-party');
if(FortuneCookie === undefined) var FortuneCookie = {};
if(typeof CCSE == 'undefined') Game.LoadMod('https://klattmose.github.io/CookieClicker/' + (0 ? 'Beta/' : '') + 'CCSE.js');
FortuneCookie.name = 'Fortune Cookie';
FortuneCookie.version = '2.17';
FortuneCookie.GameVersion = '2.022';
FortuneCookie.launch = function(){
FortuneCookie.init = function(){
FortuneCookie.isLoaded = 1;