Skip to content

Instantly share code, notes, and snippets.

Jochen Greif thej

Block or report user

Report or block thej

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thej
thej / config.md
Created Sep 8, 2018 — forked from 0XDE57/config.md
Firefox about:config privacy settings
View config.md

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 / facebook-contact-info-summary.rb
Created Mar 23, 2018 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /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.
#
View opoloo_template.rb
# GEMS
gem 'email_validator'
gem_group :development do
gem 'capistrano-rails'
gem 'capistrano-rvm'
end
gem_group :development, :test do
gem 'rspec-rails'
View designer.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-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View designer.html
<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 Jun 28, 2014
Polymer example app
View designer.html
<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 / add_mysql_database.rb
Last active Dec 31, 2015
Creates a new MySQL database with the given database name. Usage: ruby add_mysql_database.rb <database_name>
View add_mysql_database.rb
# 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 / xdr.js
Created Nov 16, 2012 — forked from michaelcox/xdr.js
Adds XDomainRequest IE CORS support to jQuery
View xdr.js
// 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;
View backup.sh
#!/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)
You can’t perform that action at this time.