Skip to content

Instantly share code, notes, and snippets.

View jnv's full-sized avatar

Jan Vlnas jnv

View GitHub Profile
@jnv
jnv / .gitignore
Last active March 23, 2017 13:29
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
// ==UserScript==
// @name Reveal and Copy Steam Keys
// @namespace http://jnv.github.io
// @include https://www.bundlestars.com/*/orders/*
// @version 1
// @grant none
// @domain www.bundlestars.com
// @run-at document-idle
// ==/UserScript==
@jnv
jnv / goout_google_calendar.user.js
Last active November 28, 2018 11:32
Add Event to Google Calendar on GoOut.net #userscript
// ==UserScript==
// @id gooutcalendar@jnv.github.io
// @name GoOut: Add Event to Google Calendar
// @description Displays Calendar button to easily add events to Google Calendar
// @namespace https://jnv.github.io
// @domain goout.net
// @include https://goout.net/*
// @version 2018.11.28
// @grant none
// @run-at document-idle

Keybase proof

I hereby claim:

  • I am jnv on github.
  • I am jnv (https://keybase.io/jnv) on keybase.
  • I have a public key ASBIZVkPVMNiIuzZgRV3eCmCmrUDL3kZ0xr1bpryd_CbrAo

To claim this, I am signing this object:

@jnv
jnv / check-urls.sh
Created November 8, 2016 21:08
Bulk check list of URLs with curl; outputs semicolon separated csv
#!/bin/bash
# Usage: check-urls.sh <urls list>
# <urls list> is a text file with 1 URL per line
echo "url;http_code;url_effective;error"
while read -r LINE; do
echo -n "$LINE;"
curl -o /dev/null -sS --max-time 5 --write-out '%{http_code};%{redirect_url};' "$LINE" 2> >(sed -e 's/$/;/' | tr -d '\n' | tr -d '\r')
sync
echo ""
done < "$1"
@jnv
jnv / Gemfile
Created October 10, 2016 21:48
Mass management of Instapaper articles in Ruby
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'instapaper', '~> 1.0.0.pre3'
@jnv
jnv / index.js
Created August 27, 2016 08:27
SMS forwarder for broken Arduino Uno WiFi Ciao library
'use strict'
const http = require('http')
const server = http.createServer().listen(process.env.PORT || 3000)
const url = require('url')
const TWILIO_SID = ''
const TWILIO_TOKEN = ''
const TEL_FROM = ''
const TEL_TO = ''
@jnv
jnv / README.markdown
Last active January 7, 2016 11:07 — forked from karmi/README.markdown
NYT ISIS Attacks Chart
[
{
"date" : "2015-12-02",
"fatalities" : 14,
"location" : "California",
"description" : "Shooting",
"link" : "http://www.nytimes.com/interactive/2015/12/02/us/california-mass-shooting-san-bernardino.html"
},
{
@jnv
jnv / index.html
Last active November 3, 2015 10:31 — forked from karmi/d3.js
A D3.js Tutorial: Bar Chart
<!DOCTYPE html>
<html>
<head>
<title>D3.js Tutorial • Bar Chart</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
body
{ color: #222;
background: #f8f8f8;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;