Skip to content

Instantly share code, notes, and snippets.

View archagon's full-sized avatar

Alexei Baboulevitch archagon

View GitHub Profile
@archagon
archagon / robocopy-delete
Created June 16, 2013 08:03
Sometimes Windows has trouble deleting directories with very long paths down in the lower depths. Fortunately, robocopy can magically circumvent this! Simply create an empty directory and mirror it into the directory you wish to delete.
robocopy /b /mir "C:\EmptyDir" "C:\DirToEmpty"
@archagon
archagon / simpletables.css
Last active January 1, 2016 00:29
Pretty CSS tables for my Squarespace site.
table
{
text-align:center;
border-collapse:collapse;
border:none;
font-size:0.85em;
display:inline-block;
line-height:1.4em;
}
.tablepadding
@archagon
archagon / video-dl-bookmarklet.js
Last active January 1, 2016 12:29
An attempt at making a bookmarklet to download any YouTube and/or MP4 videos on a page.
(function() {
var appName = "";
var jQueryVersion = "2.0.3";
var jQueryUIVersion = "1.10.3";
var jQueryUITheme = "redmond";
function loadPrerequisites(callback)
{
loadJQuery(function() {
@archagon
archagon / dom-filter.js
Last active February 4, 2016 06:36
The start of a generic DOM filtering bookmarklet, along with sample code. Useful if a website's filters aren't specific enough. SEL is the selector for the main list item and COND is a filtering function that you can customize.
var PRINT = false;
var LOG = 1;
var SEL = ".pin";
var COND = function($node) {
var ret = true;
ret = checkNum($node, ".pinPrice", ">=", 10);
if (!ret) { return false; }
@archagon
archagon / title.html
Last active August 29, 2015 14:09
If you have a lot of browser windows open that you're not currently using, open this page and type in a title. Now your browser windows will be annotated. Especially useful if you use OSX spaces.
<style>
input {
margin-top: auto;
margin-bottom: auto;
background-color: transparent;
font-size: 150px;
width: 100%;
height: 100%;
text-align: center;
border: none;