I installed using windows-chocolatey like choco install openssl which gave me an incompatible pem-file (old certificate version error in barrier logs). Using CMD then cd %userprofile%\AppData\Local\Barrier\SSL and "C:\Program Files\Git\usr\bin\openssl.exe" req -x509 -nodes -days 3365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem -sha256 worked for me.
This file contains 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
/** | |
* Nabil Redmann (BananaAcid), License MIT | |
*/ | |
async function loadDependency(url, elementName, urlAttribute, attributes = {}, append = true) { | |
// check if it was added already | |
const prevElements = document.querySelectorAll(`${elementName}[${urlAttribute}="${url}"]`); | |
if (prevElements.length) return append ? true : prevElements[0]; | |
// load if missing | |
let dep = document.createElement(elementName); |
This file contains 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
/** | |
* Nabil Redmann (BananaAcid), License MIT | |
*/ | |
async function loadScript(url) { | |
// check if it was added already | |
if (document.querySelectorAll(`script[src="${url}"]`).length) return true; | |
// load if missing | |
let script = document.createElement('script'); | |
script.src = url; |
This file contains 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
async function getDir() { | |
const dirHandle = await window.showDirectoryPicker({id: 'rememberMyLastSelected', mode: 'readwrite', 'startIn': 'documents'}); // https://developer.mozilla.org/en-US/docs/Web/API/Window/showDirectoryPicker#parameters | |
console.log('Opened file system: ', dirHandle); | |
// simple file list | |
for await (const entry of dirHandle.values()) { | |
console.log(entry.kind, entry.name); | |
} |
This file contains 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 schule.hessen.de - Fixes | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Remember User name, and fix spacings in inserted one-time-passwords (copied from Authy) | |
// @author Nabil Redmann | |
// @match https://owa.hessen.de/logon/LogonPoint/tmindex.html | |
// @icon https://www.google.com/s2/favicons?domain=hessen.de | |
// @grant none | |
// ==/UserScript== |
This file contains 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 PhotoPea full width | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Use full width - move the ad outside the viewport | |
// @author BananaAcid | |
// @match https://www.photopea.com/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=photopea.com | |
// @updateURL https://gist.github.com/BananaAcid/920a0af587367101a95a30c546d0162d/raw/PhotoPea%2520full%2520width.user.js | |
// @downloadURL https://gist.github.com/BananaAcid/920a0af587367101a95a30c546d0162d/raw/PhotoPea%2520full%2520width.user.js |
This file contains 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
{ | |
"name": "project_abc", | |
"private": true, | |
"config": { | |
"host": "hosting.server.tld", | |
"domain": "abc-project.tld" | |
}, | |
"scripts": { | |
"local:createSshKey": "ssh-keygen -t rsa", |
This file contains 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
# add user cert to root | |
ssh-keygen -t rsa | |
ssh root@server.tld "touch /root/.ssh/authorized_keys && chmod 600 /root/.ssh/authorized_keys" | |
cat ~/.ssh/id_rsa.pub | ssh root@server.tld "cat - >> /root/.ssh/authorized_keys" | |
# add user to dokku for git+push | |
cat ~/.ssh/id_rsa.pub | ssh root@server.tld "sudo sshcommand acl-add dokku $USER" |
This file contains 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
let add = (tag, url) => new Promise( (resolve) => { | |
let el = document.createElement(tag); | |
if (tag === 'link') { el.rel = 'stylesheet'; } | |
if (tag === 'link') { | |
el.href = url; | |
} | |
else if (tag === 'script') { | |
el.src = url; | |
} |
This file contains 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
having nodeJs installed allready ... | |
run each command on a new terminal | |
npx node-infopage | |
npx localtunnel --port 4567 --subdomain testitest | |
# npx ngrok http 4567 | |
npx open-cli https://testitest.loca.lt/ |