Skip to content

Instantly share code, notes, and snippets.

@folknor
folknor / vm-kle.js
Last active May 5, 2024 12:41
Violentmonkey Script for KLE
// ==UserScript==
// @name KLE Floating Window
// @namespace folknor.KLE
// @version 1.2.2
// @author folk
// @description Quality of life fixes for KLE.
// @grant none
// @match *://www.keyboard-layout-editor.com/*
// @run-at document-idle
// @inject-into page
/**
* Copyright (c) 2016 Hideki Shiro
* Manually adapted for private project use by https://github.com/folknor because
* the original repository hasn't been updated in a while and there are
* pending pull requests and other issues that I needed.
*/
import opentype from "opentype.js"
// Private method
@folknor
folknor / ffrel.lua
Last active February 27, 2021 22:12
Firefox Release Checker using RSS Feed
#!/usr/bin/lua
local xml2lua = require("xml2lua") -- Just fail early if these dont exist
local handler = require("xmlhandler.tree")
-- Requires either curl, lua-curl or luasec later
-- Uses either notify-send if available or prints new releases to stdout
local DEBUG = false
local VERSION = 20210229
local RSSURL = "https://hg.mozilla.org/mozilla-unified/rss-tags"
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
CPU Family: 0x6
#!/usr/bin/lua
local _FEEDS = {
"https://www.youtube.com/feeds/videos.xml?channel_id=UCzQUP1qoWDoEbmsQxvdjxgQ", -- JRE
"https://www.youtube.com/feeds/videos.xml?channel_id=UCNAxrHudMfdzNi6NxruKPLw", -- Sam
}
local sh = require("sh")
local _t = tostring
local feedparser = require("feedparser")
diff --git a/2.0.0/common/alerts.txt b/2.0.2/common/alerts.txt
index c2bf6a6..e9b3c6c 100755
--- a/2.0.0/common/alerts.txt
+++ b/2.0.2/common/alerts.txt
@@ -135,5 +135,9 @@ alerts = {
category = HIGH
sound = "high_war_exhaustion"
}
+ alert_high_piracy_risk = {
+ category = MEDIUM
#!/usr/bin/env node
var electron = require('./')
var proc = require('child_process')
var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'})
child.on('close', function (code) {
process.exit(code)
})
This file has been truncated, but you can view the full file.
diff --git a/1.9.1/common/achievements.txt b/2.0.0/common/achievements.txt
index f6d51ff..a2c1c0a 100755
--- a/1.9.1/common/achievements.txt
+++ b/2.0.0/common/achievements.txt
@@ -1085,3 +1085,133 @@ achievement_planet_of_the_mechs = {
has_country_flag = planet_of_the_mechs
}
}
+
+achievement_exterminatus = {
"editor.fontFamily": "Hasklig, 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 16,
"editor.insertSpaces": false,
"editor.roundedSelection": false,
"editor.mouseWheelZoom": true,
"editor.fontLigatures": true,
"editor.hideCursorInOverviewRuler": true,
"editor.renderIndentGuides": true,
"editor.folding": false,
"editor.renderWhitespace": "boundary",
@folknor
folknor / gist:acaaa2b2575a4e69d3416fde50881a1f
Created October 23, 2016 12:28
strings dump of stellaris.exe
graphic_settings
windowed
fullscreen
borderless_window
display_mode
resolution
refresh_rate
multisample_level
medium
graphics_quality