Skip to content

Instantly share code, notes, and snippets.

💭
Fighting entropy

Evgeniy Vasilev aquilax

💭
Fighting entropy
View GitHub Profile
@aquilax
aquilax / metafilter_playlist.js
Created Dec 2, 2018
Copy external links from a thread as tab delimited table
View metafilter_playlist.js
copy(Array.prototype.slice.call(document.querySelectorAll("a"))
.filter(link => link.text && !link.href.startsWith(window.location.href.substr(0, 10)))
.map(link => `${link.href}\t${link.text}`)
.join("\n"));
@aquilax
aquilax / rackspace-dns-to-bind.js
Created Aug 19, 2018
Rough Rackspace DNS to bind translator
View rackspace-dns-to-bind.js
copy(r.records.reduce((a, row) => {
let line = [
row['name'] + '.',
row['ttl'],
'IN',
row['type'],
'"' + row['data'] + '"',
].join("\t");
a.push(line);
return a;
View test_lanes.go
package main
import (
"reflect"
"sort"
"testing"
)
type item struct {
from int
@aquilax
aquilax / youtube_hide.js
Created Oct 28, 2017
This snippet hides all watched videos from the subscriptions list
View youtube_hide.js
// This snippet hides all watched videos from the subscriptions list
let nodes = document.querySelectorAll('ytd-thumbnail-overlay-playback-status-renderer');
[].map.call(nodes, (el) => {
el.parentNode.parentNode.parentNode.parentNode.parentNode.setAttribute('hidden', true);
});
View ether.txt
0xadC78F169718ED920f1C7d1Cf364D280876Dc715
@aquilax
aquilax / shell.php
Created Jan 14, 2016
PrestaShop REPL
View shell.php
<?php
//
// PHP REPL with initialized Prestashop environment
//
// Inspired by https://gist.github.com/Vinai/5579309
//
$configFile = '../config/config.inc.php';
@aquilax
aquilax / boris-mage.php
Created Dec 22, 2015 — forked from Vinai/boris-mage.php
PHP REPL with initialized Magento environment
View boris-mage.php
#!/usr/bin/env php
<?php
//
// PHP REPL with initialized Magento environment
//
// Thanks to https://github.com/d11wtq/boris
//
// Drop this script in your $PATH and run it anywhere in a Magento directory tree to start the REPL
//
@aquilax
aquilax / test.md
Created May 21, 2015
Test markdown
View test.md

This is test markdown

View keybase.md

Keybase proof

I hereby claim:

  • I am aquilax on github.
  • I am aquilax (https://keybase.io/aquilax) on keybase.
  • I have a public key whose fingerprint is 3A08 01C8 95EA 2858 ABB3 45CA 7595 95CF 15EE E430

To claim this, I am signing this object:

@aquilax
aquilax / schema.sql
Created Sep 24, 2014
scif_sqlite3_schema
View schema.sql
CREATE TABLE edomain (
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain_id integer DEFAULT 0,
url character varying(200),
title character varying(50),
status integer DEFAULT 1,
pre_text text,
post_text text,
analytics character varying(15),
header_text text
You can’t perform that action at this time.