Skip to content

Instantly share code, notes, and snippets.

@nojacko
nojacko / Composer Copy
Last active Aug 29, 2015
Composer: Copy one project to vendor folder of another
View Composer Copy
php copyToVendor.php project_one project_two
Will copy project_one's source and put it into project_two's vendor folder under the namespace/package from composer.json
@nojacko
nojacko / Coding Standards for Lazy PHP Devs
Last active Aug 29, 2015
Coding Standards for Lazy PHP Devs
View Coding Standards for Lazy PHP Devs
export PATH=~/.composer/vendor/bin:$PATH
composer global require "squizlabs/php_codesniffer=*";
# Check and Beautify
# - Ignore some commonly ignored things (composer folder, blade templates, ...)
phpcs ./ --ignore=test-reports,vendor,*.blade.php --standard=psr2,psr1 --report=summary
phpcbf ./ --ignore=test-reports,vendor,*.blade.php --standard=psr2,psr1 --report=summary
@nojacko
nojacko / .gitignore_global
Last active Aug 29, 2015
Global Gitignore
View .gitignore_global
# Save this file to ~/.gitignore_global
# Run: git config --global core.excludesfile ~/.gitignore_global
#############################################################################
# OSX: https://github.com/github/gitignore/blob/master/Global/OSX.gitignore #
#############################################################################
*~
.DS_Store
.AppleDouble
.LSOverride
View 14.04-bloat-packages
# Purge the following packages
account-plugin-aim
account-plugin-facebook
account-plugin-flickr
account-plugin-jabber
account-plugin-salut
account-plugin-twitter
account-plugin-windows-live
account-plugin-yahoo
@nojacko
nojacko / external.js.md
Last active Oct 8, 2015
jQuery: Open External Links in New Window (and add class)
@nojacko
nojacko / Testing PHP Random Salt Generation
Last active Dec 10, 2015
Testing PHP Random Salt Generataion
View Testing PHP Random Salt Generation
# Testing PHP Random Salt Generation
## Functions for generating salt
### mt_rand()
```
function mtSalt ($length = 22)
{
mt_srand();
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./';
$salt = '';
@nojacko
nojacko / Gmail Filter For Recruiters
Last active Oct 3, 2016
Gmail Filter For Recruiters
View Gmail Filter For Recruiters
from:(@progressivege.com OR @onezeero.co.uk OR @damiagroup.com OR @ontheshortlist.co.uk OR @searchability.co.uk OR @ascentpeople.co.uk OR @s-sa.co.uk OR @jobstheword.com OR @tyba.com OR @evosearch.co.uk OR @recann.co.uk OR @rebelrecruitment.co.uk OR @x4group.co.uk OR @yoh.com OR @broadbean.net OR @redskyrecruitment.co.uk OR @xpertise-recruitment.com OR @progressiverecruitment.com OR @linuxrecruit.co.uk OR @unitingambition.com OR @avantirec.com OR @techmodi.net OR @vantageconsulting.co.uk OR @erg-uk.com OR @gsatechsource.com OR @explorerec.com OR @monarchrecruitment.co.uk OR @marinsoftware.com OR @rtrs.co.uk OR @bettercareers.co.uk OR @yolkrecruitment.com OR @jp-jobs.com OR @mobilecontractor.co.uk OR @spring.com OR @senitor.com OR @monarchit.co.uk OR @exploreltd.com OR @lorien.co.uk OR @interactconsulting.co.uk OR @computerpeople.co.uk OR @modis.co.uk OR @evolutionjobs.co.uk OR @lainternational.com OR @project-it.co.uk OR @oscar-associates.com OR @bigredrecruitment.co.uk OR @venturi-group.com OR @jamrecruitmen
@nojacko
nojacko / README.md
Last active Nov 10, 2016
Dynamically render HTMLBars.
View README.md

How to use

{{dynamic-template source=htmlbarsTemplateStingHere}}
@nojacko
nojacko / setup.sh
Last active May 16, 2017
Storj Server
View setup.sh
#
# 1. Create Counterparty wallet: https://counterwallet.io/
# 2. Docs: https://github.com/Storj/storjshare-daemon/
# Firewall!
sudo ufw default allow;
sudo ufw enable;
sudo ufw allow 22/tcp;
sudo ufw allow 4000:4003/tcp
You can’t perform that action at this time.