Skip to content

Instantly share code, notes, and snippets.

@nojacko
nojacko / setup.sh
Last active May 16, 2017 07:19
Storj Server
#
# 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
@nojacko
nojacko / README.md
Last active November 10, 2016 14:43
Dynamically render HTMLBars.

How to use

{{dynamic-template source=htmlbarsTemplateStingHere}}
# 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 / .gitignore_global
Last active August 29, 2015 14:10
Global Gitignore
# 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
@nojacko
nojacko / Gmail Filter For Recruiters
Last active October 3, 2016 13:12
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 / Coding Standards for Lazy PHP Devs
Last active August 29, 2015 14:08
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 / Composer Copy
Last active August 29, 2015 14:06
Composer: Copy one project to vendor folder of another
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 / Testing PHP Random Salt Generation
Last active December 10, 2015 11:38
Testing PHP Random Salt Generataion
# Testing PHP Random Salt Generation
## Functions for generating salt
### mt_rand()
```
function mtSalt ($length = 22)
{
mt_srand();
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./';
$salt = '';
@nojacko
nojacko / external.js.md
Last active October 8, 2015 06:29
jQuery: Open External Links in New Window (and add class)