Skip to content

Instantly share code, notes, and snippets.

@ewpratten
ewpratten / hosts-yt-ads
Last active July 19, 2024 17:40
youtube ads hosts file
This project has been moved to a GitHub repository to allow Pull Requests.
See: https://github.com/Ewpratten/youtube_ad_blocklist
@JohannesDeml
JohannesDeml / README.md
Last active May 17, 2024 23:09
Batch convert images with inkscape on windows

Batch convert svg|pdf|eps|emf|wmf|ai|ps|cdr to eps|pdf|png|jpg|tiff|svg|ps|emf|wmf

Screenshot Batch converter for Windows using Inkscape with the command line
InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)

Usage

  1. Download _InkscapeBatchConvert.bat
  2. Put it in the folder where you have files you wish to convert (will also scan on all subfolders for files of input type).
  3. Then double click the file to start it.
@Miserlou
Miserlou / cities.json
Created April 30, 2015 06:58
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@brucekirkpatrick
brucekirkpatrick / scrypt.cfm
Created November 10, 2013 23:00
Using scrypt hashing in coldfusion or railo
<cfscript>
password="test1234";
N = 65536; // CPU cost parameter.
r = 16; // Memory cost parameter.
p = 1; // Parallelization parameter.
// Note: SCryptUtil has default of 16 byte random salt and 256-bit key
SCryptUtil=createobject("java", "com.lambdaworks.crypto.SCryptUtil", "/path/to/scrypt-1.4.0.jar");
// generate a hash
hashedPassword=SCryptUtil.scrypt(password, N, r, p);
@netsi1964
netsi1964 / splitStringToItems.xslt
Created May 9, 2012 21:05
XSLT split a string into items
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="no"/>
<xsl:variable name="groups" select="'265, 256'" />
<xsl:template match="root">
<xsl:variable name="items">
<xsl:call-template name="splitStringToItems">
@nils-werner
nils-werner / gist:721650
Created November 30, 2010 13:10
URL encode/decode
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
ISO-8859-1 based URL-encoding demo
Written by Mike J. Brown, mike@skew.org.
Updated 2002-05-20.
No license; use freely, but credit me if reproducing in print.