Skip to content

Instantly share code, notes, and snippets.

@thej
thej / designer.html
Created June 28, 2014 17:34
Polymer example app
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@thej
thej / designer.html
Created June 28, 2014 18:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@thej
thej / designer.html
Created June 28, 2014 19:24
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
#!/bin/sh
# /usr/local/sbin/backup.sh
#Backup mysql-databases to /var/bckups/mysql
echo -n "Dumping Mysql-databases...."
/usr/local/sbin/backup-mysql.sh
echo -n "Done."
# Run all backup profile found in /etc/tartarus/ and pass
# command line arguments on to tartarus (e.g. -i)
@thej
thej / xdr.js
Created November 16, 2012 00:38 — forked from michaelcox/xdr.js
Adds XDomainRequest IE CORS support to jQuery
// Based on https://github.com/jaubourg/ajaxHooks/blob/master/src/ajax/xdr.js
(function( jQuery ) {
if ( window.XDomainRequest && !jQuery.support.cors ) {
jQuery.ajaxTransport(function( s ) {
if ( s.crossDomain && s.async ) {
if ( s.timeout ) {
s.xdrTimeout = s.timeout;
delete s.timeout;
# GEMS
gem 'email_validator'
gem_group :development do
gem 'capistrano-rails'
gem 'capistrano-rvm'
end
gem_group :development, :test do
gem 'rspec-rails'
@thej
thej / add_mysql_database.rb
Last active December 31, 2015 17:49
Creates a new MySQL database with the given database name. Usage: ruby add_mysql_database.rb <database_name>
# https://gist.github.com/thej/8022392
require 'mysql2'
require 'securerandom'
require 'io/console'
# check for parameters
if ARGV.size != 1
puts "Usage: ruby add_mysql_database.rb <database_name>"
exit
end
@thej
thej / facebook-contact-info-summary.rb
Created March 23, 2018 12:48 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
# in whatever the working directory of the program is when executed.
#
@thej
thej / config.md
Created September 8, 2018 13:02 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@thej
thej / covid_stats.md
Last active July 14, 2021 16:00
Covid Stats

Covid Stats

Covid-Tote mit Todesbescheinigungen

2020

  • Gesamt: 36.291
  • davon direkte Todesursache: 30.136
  • davon mit einer Coronavirus-Infektion als Begleiterkrankung, jedoch an einer anderen Grunderkrankung: 6155