Skip to content

Instantly share code, notes, and snippets.

View akatopo's full-sized avatar
🙃
nada

Alex Katopodis akatopo

🙃
nada
View GitHub Profile
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
[data-color-mode='dark'] {
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-variable: #ffa657;
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
// ==UserScript==
// @name Grayscale Youtube Previews
// @downloadURL https://gist.githubusercontent.com/akatopo/4416756e8ca7a84098d6ab04dbc5dd71/raw/filter_youtube_previews.js
// @version 0.3
// @description apply grayscale filter to youtube video previews
// @author Alex Katopodis
// @match https://www.youtube.com/*
// ==/UserScript==
(() => {

Keybase proof

I hereby claim:

  • I am akatopo on github.
  • I am akatopo (https://keybase.io/akatopo) on keybase.
  • I have a public key ASARXOogC3p0pOIql9Za4ZZDeZP6hY-ya_BeaUVrtsJ9vAo

To claim this, I am signing this object:

@akatopo
akatopo / gtk.css
Created February 16, 2017 09:06
Dark tabs for terminator 1.90 (Adapta GTK theme)
.terminator-terminal-window .notebook { padding: 0; background-color: #455A64; -GtkNotebook-initial-gap: 6; -GtkNotebook-arrow-spacing: 5; -GtkNotebook-tab-curvature: 0; -GtkNotebook-tab-overlap: 1; -GtkNotebook-has-tab-gap: false; -GtkWidget-focus-padding: 0; -GtkWidget-focus-line-width: 0; }
.terminator-terminal-window .notebook.frame { border: 1px solid rgba(0, 0, 0, 0.11); }
.terminator-terminal-window .notebook.frame.top { border-top-color: #455A64; }
.terminator-terminal-window .notebook.frame.bottom { border-bottom-color: #455A64; }
.terminator-terminal-window .notebook.frame.left { border-left-color: #455A64; }
@akatopo
akatopo / anytomp3.js
Last active December 28, 2018 16:37
convert audio files to mp3 with ffmpeg
#!/usr/bin/env node
const path = require('path');
const execSync = require('child_process').execSync;
const {
which,
test,
mkdir,
ls
} = require('shelljs');
@akatopo
akatopo / README.md
Last active August 27, 2015 15:28
Backtick command to replace emoji characters with twitter emoji

This is a command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

This command replaces emoji characters with twitter emoji.

@akatopo
akatopo / Dropbox Duplicates
Last active August 29, 2015 14:27 — forked from acrogenesis/Dropbox Duplicates
Remove Dropbox Duplicates
find -L ~/Dropbox -name "*conflicted copy*" -exec rm {} \;
// ==UserScript==
// @name Replace pocket article view links with original links
// @updateURL https://gist.github.com/akatopo/db936ca93c02ff53b3c0/raw
// @downloadURL https://gist.github.com/akatopo/db936ca93c02ff53b3c0/raw
// @version 0.19
// @description Replaces pocket article view links with original links without redirect
// and moves the article view link next to the delete button. Removes share and copy link buttons.
// @require https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.18.1/URI.min.js#sha384=fwI1rPfq814p7OaC91S1eASL8OGwE9c9oY5F8ho98XH1f6XB9CQpvwvyQPl+Vl5B
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js#sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=
// @match https://getpocket.com/saves*

This is a command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

This command opens the addthis bookmarklet