This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script does some early-boot initialization of rooted webOS devices. It's | |
# meant to be copied over to suitable path (eg. start-devmode.sh) to keep it | |
# safe from accidental homebrew channel app removal. | |
# Ensure that startup script runs only once per boot | |
once=/tmp/webosbrew_startup | |
exec 200>"${once}.lock" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"428": { "c": "mic>ttx", "action": "replace", "keycode": 779 }, | |
"787": { "c": "gide", "action": "launch", "id": "com.webos.app.livemenu" }, | |
"1037": { "c": "netf", "action": "launch", "id": "com.webos.app.hdmi1" }, | |
"1038": { "c": "prim", "action": "launch", "id": "com.webos.app.hdmi2" }, | |
"1042": { "c": "dis", "action": "launch", "id": "com.webos.app.livetv" }, | |
"1044": { "c": "rak", "action": "launch", "id": "com.webos.app.browser" }, | |
"1086": { "c": "lexa", "action": "exec", "command": "/home/root/adjust-backlight.sh up 10" }, | |
"1117": { "c": "goo ass", "action": "exec", "command": "/home/root/adjust-backlight.sh down 10" } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readdirSync, readFileSync, writeFileSync, copyFileSync, mkdirSync } from 'fs'; | |
import { join, dirname, relative } from 'path'; | |
function parseIni(content: string) { | |
const result: Record<string, { comments: string[], options: Record<string, { comments: string[], value: string }> }> = {}; | |
let currentSection: string = ''; | |
let currentComments: string[] = []; | |
content.split('\n').forEach(line => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test report tpl vars</title> | |
<style> | |
* { font-size: 10px; } | |
html, body { margin: 0; padding: 0; } | |
body { padding: 0 5px; } | |
.container { height: 100%; display: flex; flex-direction: row; } | |
.fill-height { height: 100vh; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Webflow Variables CSV Export Import Magic | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description try to take over the world! | |
// @author gaabora | |
// @match https://webflow.com/design/* | |
// @match https://*.design.webflow.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=webflow.com | |
// @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function encodeURIComponent($str) { | |
$revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')'); | |
return strtr(rawurlencode($str), $revert); | |
} | |
class curl_onHeaders | |
{ |