Skip to content

Instantly share code, notes, and snippets.

💭
Life

Efreak Efreak

💭
Life
View GitHub Profile
@Efreak
Efreak / README.md
Last active Dec 13, 2018
Termux libtidy Deb file
View README.md

so to get this file, i used the instructions linked from [here](https://github.com/termux/termux-packages/issues/2227/

you can try running build.sh to automate it, but I o ly spent ~5min actually writing that script, and it's untested. alternatively, just run the commands yourself; the necessary files are included as well

feel free to fork the gist and/or comment with fixes

@Efreak
Efreak / index.html
Created Aug 23, 2017
GUI for ASF3, based on @KlappPc's page. jQuery removed. Clicking a text area highlights it. Styles added. Font sizes increased. Placeholders added to textareas and input.
View index.html
<html>
<head>
<script type="text/javascript">
var script = function(){
var textarea = document.getElementById('consoleOut');
var updateLog = function(){
var xhr = new XMLHttpRequest();
xhr.onload = function(){
textarea.innerText=this.response;
@Efreak
Efreak / index.html
Last active Aug 17, 2017
copy of js url/base64 en/decoder by @stephenostermiller with some tweaks. To use, go to https://bots.efreakbnc.net/efreak/encode/ or rawgit: https://goo.gl/kakB1e
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Base64 and URL Encoding and Decoding</title>
<meta name="description" content="Encodes or decodes data in Base64 or URL encoding using client side JavaScript">
<meta name="keywords" content="base64, base 64, urlencode, urldecode, hexencode, hex encode, hexdecode hex decode, javascript base64, javascript base 64, javascript urlencode, javascript urldecode, javascript hexencode, javascript hexdecode">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta name=viewport content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.js"></script>
<style>
@Efreak
Efreak / README.md
Last active Jan 5, 2017
Signed shumway addon for firefox
View README.md

This is my copy of shumway, signed by mozilla on August 5 2016

It's possible that firefox in the future (or currently) expires signatures on self-hosted addons and will want a newly signed version of the addon--I will not be providing this, as I no longer use it, and I had the mozilla tools installed in a throwaway virtual environment. This impression mostly comes from this post on mozilla support.

If you don't trust my source, you should be able to unzip the xpi file and compare the contents to the official version (this may require building it yourself, I'm not sure).

I have no idea why my xpi is 66mb and http://mozilla.github.io/shumway/extension/firefox/shumway.xpi is only 558kb.

View findempty.cmd
@echo off
echo "Removing empty subdirectories"
timeout /t 10
cls
for /d /r %1 %%A in (.) do (
dir /a /b "%%~fA" 2>nul | findstr "^" >nul || rmdir "%%~fA"
)
View zip.cmd
@echo off
echo "Zipping subfolders of subfolders into uncompressed cbz files. 7z.exe should be in path, current, or parent directory"
timeout /t 10
path=C:\Program Files\7-Zip\;..;%PATH%
cls
setlocal
for /d %%a in (*) DO (
cd "%%a"
for /d %%x in ("*") DO (
7z.exe a -tzip -mx0 "%%x.cbz" "%%x\"
@Efreak
Efreak / startwsl.vbs
Created Nov 25, 2016
Start persistent WSL with services and byobu in background. To launch byobu with wsltty, use the command in wsl.bat, and replace /bin/bash with /usr/bin/byobu. Raw
View startwsl.vbs
'syntax
' - Run: http://ss64.com/vb/run.html or https://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.84).aspx
' - Sleep: http://ss64.com/vb/sleep.html or https://msdn.microsoft.com/en-us/library/6t81adfd(v=vs.84).aspx
'start hidden byobu in WSL. If you like playing with zsh modules so much that your prompt frequently takes a long time to load, you'll want this.
CreateObject ("Wscript.Shell").Run "C:\Windows\System32\bash.exe -c byobu", 0, false
'give it a bit to finish starting. https://msdn.microsoft.com/en-us/library/6t81adfd(v=vs.84).aspx
WScript.Sleep(3000)
View wild-cherry.zsh-theme
VIRTUAL_ENV_DISABLE_PROMPT=true
# PROMPT
if [ ! -n "${WILDCHERRY_PROMPT_CHAR+1}" ]; then
WILDCHERRY_PROMPT_CHAR="\$"
fi
if [ ! -n "${WILDCHERRY_PROMPT_ROOT+1}" ]; then
WILDCHERRY_PROMPT_ROOT=true
fi
You can’t perform that action at this time.