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
#!/usr/bin/env -S bash -xeuo pipefail | |
pkg update && pkg upgrade | |
pkg install which time ldd tree | |
set -xeuo pipefail | |
pkg install pacman patchelf \ | |
which time ldd tree |
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
using System; | |
using System.Diagnostics; | |
using System.Text.RegularExpressions; | |
partial class ZipExtractor | |
{ | |
static void Main(string[] args) | |
{ | |
// get the name of the zip file to extract | |
string filename = args[0]; |
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 getAnswerCode(key, str) { | |
let t = 0; | |
for (let i = 0; i < str.length; i++) { | |
t += str.charCodeAt(i); | |
} | |
t += parseInt(key.slice(-2), 16); | |
return t.toString(); | |
} | |
Function(document.querySelector("link~script").innerHTML.split(/\n/)[1]); | |
var answer0 = document.querySelector("#rqAnswerOption0"); |
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 convertCutlistToM3u(cutlist, starttime = null) { | |
var obj = {}; | |
var lastKey; | |
cutlist.split(/\n\n?/).forEach(l => { | |
var [, key] = l.match(/\[(.*)]/) || []; | |
if (key) { | |
obj[key] = {} | |
lastKey = key; | |
} else { | |
var [prop, val] = l.split("="); |
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
javascript:document.addEventListener("keydown",function(e){if(e.ctrlKey&&e.altKey&&e.key=="d"){[...document.querySelectorAll(".editormenu>li:nth-child(3)>table>tr:nth-child(10)")].filter(i => i.closest('[name="tabview_contentmain"]').style.display != "none")[0].click();[...document.querySelectorAll(".editormenu>li:nth-child(3)>table")].filter(i => i.closest('[name="tabview_contentmain"]').style.display != "none")[0].classList.remove("visible");}}); |
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
m(x) ... minutes of the time x | |
h(x) ... hours of the time x | |
add time | |
a+b=c | |
if (m(c)>=60) || (h(a)+h(b)>h(c)) | |
c=c+40 | |
subtract time | |
a-b=c |