Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jasperf's full-sized avatar
🏠
Working from home

Jasper Frumau jasperf

🏠
Working from home
View GitHub Profile
@jasperf
jasperf / gist:a38d6d63f7b9c31d7f4a
Last active August 29, 2015 14:03 — forked from ifnull/gist:5055099
Show the permissions of (current) directory in numeric values like 777 or 755 depending on the setup. This is sometimes easier than looking at the rights with alphabets.
stat -c "%a %n" .
@jasperf
jasperf / chmod_files_and_dirs.sh
Created July 7, 2014 11:40 — forked from infolock/chmod_files_and_dirs.sh
# Recursively find all files in the current directory and change to access of 644 and for directories to 755
# Recursively find all files in the current directory and change to access of 644
find ./ -type f -exec chmod 644 {} \;
# Recursively find all directories in the current directory and change to access of 755
find ./ -type d -exec chmod 755 {} \;
[{"key":"1920 x 1080","name":"Nexus 5 Landscape","width":1920,"height":1080},
{"key":"1080 x 1920","name":"Nexus 5 Portrait","width":1080,"height":1920},
{"key":"1024 x 768","name":"iPad Landscape","width":1024,"height":768},
{"key":"768 x 1024","name":"iPad Portrait","width":768,"height":1024},
{"key":"736 x 414","name":"iPhone 6 Plus Landscape","width":736,"height":414},
{"key":"414 x 736","name":"iPhone 6 Plus Portrait","width":414,"height":736},
{"key":"667 x 375","name":"iPhone 6 Landscape","width":667,"height":375},
{"key":"375 x 667","name":"iPhone 6 Portrait","width":750,"height":1334},
{"key":"568 x 320","name":"iPhone 5/S/C Landscape","width":568,"height":320},
{"key":"320 x 568","name":"iPhone 5/S/C Portrait","width":320,"height":568},
@jasperf
jasperf / fix_permissions.sh
Last active August 29, 2015 14:22 — forked from pwenzel/fix_permissions.sh
change all file and folder permission from shell with xargs for servers running mod PHP #chmod
# change permissions for all files, skipping dirs
find . -type f | xargs chmod 664
# change permissions for all dirs, skipping files
find . -type d | xargs chmod 775

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@jasperf
jasperf / Inkscape.txt
Created September 27, 2015 09:00 — forked from lambdalisue/Inkscape.txt
How to convert px to pt in Inkscape font size
# How to convert font size px to pt in Inkscape
> Inkscape pixel is 1/90 of an inch, other software usually uses 1/72. This means if you need 10pt - use 12.5 in Inkscape (multiply with 1.25).
> http://www.inkscapeforum.com/viewtopic.php?f=6&t=5964
@jasperf
jasperf / .gitignore
Created May 24, 2012 08:01 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects #wordpress #git
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@jasperf
jasperf / gist:359ef87acaf6c0a99e61
Created October 27, 2015 11:44 — forked from hilios/gist:1284170
Nginx YSlow performance boost w/ Gzip + Far future expires Header
server {
# output compression saves bandwidth
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# make sure gzip does not lose large gzipped js or css files