Skip to content

Instantly share code, notes, and snippets.


Mina Demian minademian

View GitHub Profile
dylanmckay / facebook-contact-info-summary.rb
Last active Jun 1, 2020
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# 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
View textarea-expanded-full.component.ts
import { Component, forwardRef, Renderer2, ViewChild } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
useExisting: forwardRef(() => TextareaExpandedComponent),
multi: true,
leoforney / install icu4c
Last active Jun 24, 2017
Installing icu4c (AKA libicu) on dreamhost
View install icu4c
echo "Hey, I heard you want to install libicu on Dreamhost... Let me help you out! :D"
if [ ! -d "$HOME/usr/local" ]; then
mkdir -p ~/usr/local
if [ -d "$HOME/icu" ]; then
echo "Removing the folder ~/icu..."
staltz /
Last active Sep 25, 2020
The introduction to Reactive Programming you've been missing
irazasyed /
Last active Sep 23, 2020
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

JamieMason / unfollow.js
Last active Sep 24, 2020
Unfollow everyone on
View unfollow.js
// Unfollow everyone on, by Jamie Mason (
// 1. Go to
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
// Last Updated: 09 April 2020
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
martinburch / csvpys-one-liners
Last active Oct 31, 2019
One liners: commands to clean up your data using csvkit with csvpys on a Mac. ("So your data doesn't get the last laugh!")
View csvpys-one-liners
# Install csvkit with csvpys
# (csvpys hasn't been pulled back into the main csvkit repo that you can pip install)
git clone
cd csvkit
python build
sudo python install
cd ~
vigneshwaranr /
Created Aug 24, 2012
Script to convert SQLITE dumps into PostgreSQL compatible dumps
#! /bin/sh
usage_error () {
echo 'Usage: sh <path to> <path to sqlite db file> <an empty dir to output dump files>'
echo 'Example:'
echo '>sh ~/reviewboard.db /tmp/dumps'
echo 'Tested on:'
echo 'Python 2.7.3'
geekforbrains / post-receive
Created May 18, 2012
Git post-receive rsync to remote server
View post-receive
# Dir paths on remote server
# These are associated with branches within a git project
You can’t perform that action at this time.