Skip to content

Instantly share code, notes, and snippets.

@fnicastri
fnicastri / .gitignore
Last active August 29, 2015 14:06 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@fnicastri
fnicastri / SSHA512_gen.py
Last active August 29, 2015 14:26 — forked from garrettreid/SSHA512_gen.py
Create a salted SHA512 password hash for use with Dovecot
#!/usr/bin/python
import os
import hashlib
import getpass
import base64
password1 = None
password2 = None
@fnicastri
fnicastri / README-Template.md
Created February 16, 2017 22:21 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@fnicastri
fnicastri / .htaccess-mod_headers
Created February 20, 2017 17:37 — forked from hans2103/.htaccess-mod_headers
.htaccess rules to set cache control.
<IfModule mod_headers.c>
Header set Connection keep-alive
# Cache-control headers
# 2 HOURS
#<filesMatch "*">
Header set Cache-Control "max-age=7200, must-revalidate"
#</filesMatch>
# 480 weeks - 290304000
@fnicastri
fnicastri / createIcons.sh
Created March 5, 2017 13:05 — forked from strobic/createIcons.sh
A Bash Script to Generate All the Required App Icon Sizes for iOS
#!/bin/bash
#This script will automatically generate all correct sized icons for IOS x and Later
#from a single .svg file
#This script requires ImageMagick (macport or brew it or something)
#usage is:
#>./createIcons.sh [source_file_name].svg
echo $1
fullfile=$1
@fnicastri
fnicastri / config
Created March 8, 2017 14:25 — forked from xcodebuild/config
i3wm config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@fnicastri
fnicastri / gist:7dcb3399075a13ecdce64b4f1e4d958c
Created March 12, 2017 18:08 — forked from bradwestfall/gist:f5a010e96fb0c4d18556
Pull Instagram Images via JavaScript
@fnicastri
fnicastri / gcm_limitations.md
Created March 14, 2017 17:32
Google Cloud Messaging Limitations
  • max 1000 registration IDs per multicast message

Topic Messaging (cloud-to-device):

  • max 1 million subscribers per app
  • max 2KB payload

Device Group Messaging (cloud-to-device) or (device-to-cloud):

  • max 20 members per device group
  • group name should be unique per user
@fnicastri
fnicastri / manage-etc-hosts.sh
Created April 25, 2017 17:16 — forked from irazasyed/manage-etc-hosts.sh
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
#!/bin/sh
# PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
# DEFAULT IP FOR HOSTNAME
IP="127.0.0.1"
# Hostname to add/remove.
HOSTNAME=$1
@fnicastri
fnicastri / .gitignore
Created April 27, 2017 12:57 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20160309
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.