Skip to content

Instantly share code, notes, and snippets.

View Efreak's full-sized avatar
😴
😪😴🥱😌💤

Efreak Efreak

😴
😪😴🥱😌💤
View GitHub Profile

Keybase proof

I hereby claim:

  • I am efreak on github.
  • I am efreak (https://keybase.io/efreak) on keybase.
  • I have a public key whose fingerprint is 0DEF EE82 9221 EF99 4C91 274B 5650 F588 9C8A 72C6

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Efreak
Efreak / GitLab_Logo.svg
Created March 13, 2016 21:05
The official gitlab logo is several shapes; in order to rasterize it without odd outlines and without finding some program other than inkscape, I had to make it layered instead.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Efreak
Efreak / chiplogo+text.svg
Created March 22, 2016 00:13
CHIP & NextThingCo logos. Edited from sources on their website (rainbowchiplogo.svg) and GitHub (SingleHeader.svg)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
c=jQuery('td');
for(i=0;i<c.length;i++){
c[i].innerHTML=c[i].innerText
}
function sec(e){if(window.getSelection&&document.createRange){var t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}else if(document.selection&&document.body.createTextRange){var o=document.body.createTextRange();o.moveToElementText(e),o.select()}}
if(jQuery(".account_table").length) {
sec(jQuery(".account_table")[0]);
var table = jQuery(".account_table").length ? "account_table" : "wallet_history_table"
jQuery('.wht_total > .wth_payment').remove()
c=jQuery('td');for(i=0;i<c.length;i++){c[i].innerHTML=c[i].innerText}
((function () {
var uri = 'data:application/vnd.ms-excel;base64,'
, template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'
, base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) }
, format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }) }
return function (table, name, filename) {
// ==UserScript==
// @name Styles for Seraph Inn's Inverloch
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Compress the header. Center the comic, make it bigger (zoom main content, zoom comic a little more- this may cause graphical issues). Hide the copyright (we all know who made it) but not the ads (use an ad blocker if you care. Project Wonderful is OK).
// @author Efreak
// @match http://inverloch.seraph-inn.com/viewcomic.php?*
// @grant none
// ==/UserScript==
@Efreak
Efreak / wild-cherry.zsh-theme
Created November 20, 2016 02:19
wild-cherry
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
@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"
)
@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\"