Skip to content

Instantly share code, notes, and snippets.

@Ferk
Ferk / PasteByTyping.ps1
Last active May 5, 2022 11:17 — forked from ethack/TypeClipboard.md
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.
# It "types" the contents of the clipboard.
# Useful when pasting doesn't work (eg. RDP or VM not sharing clipboard)
$content = Get-Clipboard
Write-Output "____ CONTENT TO PASTE ____" $content "__________________________"
Write-Output " Press Ctrl+C to abort"
timeout 7
if ($?) {
@Ferk
Ferk / README.txt
Last active April 25, 2022 02:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
Prototype Contract
@Ferk
Ferk / embyserver.txt
Created February 16, 2020 03:32
Dlna server now showing up
2019-03-22 10:37:30.483 Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
2019-03-22 10:37:30.672 Info Main: Emby
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.15.0.46
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 32
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
@Ferk
Ferk / ps2doom.diff
Last active October 23, 2019 11:14
sdl_doom -> ps2doom diff
diff -wur --exclude '*.TXT' --exclude 'READ*' --exclude '*.txt' --exclude CVS --exclude 'Change*' --exclude 'config.*' --exclude 'configure*' --exclude '*.m4' --exclude 'Make*' --exclude 'FILES*' --exclude TODO sdl_doom-master/d_main.c ps2doom-master/d_main.c
--- sdl_doom-master/d_main.c 2012-12-19 12:14:42.000000000 +0100
+++ ps2doom-master/d_main.c 2011-04-08 20:08:52.000000000 +0200
@@ -31,15 +31,23 @@
#define FGCOLOR 8
-#ifdef NORMALUNIX
#include <stdio.h>
#include <stdlib.h>
@Ferk
Ferk / tools.html
Created September 27, 2019 10:50
Utility HTML page
<!DOCTYPE html>
<html><head><title>Misc Tools</title><meta charset="utf-8"/>
<script>
var actions = [
{ name: "Remove newlines",
call: function(input) {
return input.replace(/(\r\n|\n|\r)/gm, "");
}
},
{ name: "Beautify XML",
@Ferk
Ferk / zap.user.js
Last active March 1, 2021 14:51
Zap - Greasemonkey script
// ==UserScript==
// @name zap
// @namespace http://ferk.gitlab.io/
// @version 1.0
// @description zap distractions from websites
// @author Ferk
// @grant none
// @downloadUrl https://gist.github.com/Ferk/3d87d13b62645bbb886f5488c7f9fc18/raw/zap.user.js
// @updateUrl https://gist.github.com/Ferk/3d87d13b62645bbb886f5488c7f9fc18/raw/zap.user.js
// @include https?://*

Keybase proof

I hereby claim:

  • I am Ferk on github.
  • I am ferk (https://keybase.io/ferk) on keybase.
  • I have a public key whose fingerprint is C5D6 6F17 B0C3 0FC0 901C DAF9 52F9 9DF1 3E84 1A50

To claim this, I am signing this object:

@Ferk
Ferk / test.we
Created September 12, 2015 09:55
5:return {{["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 3, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 4, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 5, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 6, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 7, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 8, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 9, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 10, ["name"] = "tutorial:wall"}, {["x"] = 10, ["meta"] = {["fields"] = {}, ["inventory"] = {}}, ["y"] = 10, ["z"] = 11, ["name