Skip to content

Instantly share code, notes, and snippets.

View nask0's full-sized avatar
👾
nothing

nask0 nask0

👾
nothing
  • ...somewhere in time!
View GitHub Profile
@nask0
nask0 / gist:cb20b8d3bf0070bd395a1088c7479009
Created September 1, 2016 13:42 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@nask0
nask0 / install-libsodium.sh
Created July 15, 2016 08:38 — forked from sarciszewski/install-libsodium.sh
Install libsodium-1.0.2 and PECL libsodium on Ubuntu 14.04
#!/usr/bin/env bash
PECLVER="0.1.1"
LIBSODIUMVER="1.0.2"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@nask0
nask0 / vpn_psk_bingo.md
Created July 12, 2016 09:17 — forked from kennwhite/vpn_psk_bingo.md
Most VPN Services are Terrible
@nask0
nask0 / postgres-cheatsheet.md
Created June 8, 2016 14:48 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

@nask0
nask0 / bash-cheatsheet.sh
Created May 10, 2016 07:14 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
<?php
namespace CloseContacts\Lib\DataServices;
use \CloseContacts\Lib\Utilities\Date;
use \CloseContacts\Models\UserVerifications;
use \CloseContacts\Models\Verifications as VerificationModel;
use \CloseContacts\Models\SmsMessagesSent as SmsMessagesSentModel;
class Verifications extends DataServiceAbstract
{
<?php
namespace CloseContacts\Lib\DataServices;
use CloseContacts\Models\ApiAuthTokens;
use Lcobucci\JWT\Signer\Hmac\Sha512;
use \Lcobucci\JWT\Token as JwtToken;
use \CloseContacts\Models\ApiRequests;
use \CloseContacts\Lib\Utilities\Str;
use \CloseContacts\Lib\Utilities\Date;
use \CloseContacts\Lib\Security\Utils as SecUtils;
<?php
namespace CloseContacts\Lib\DataServices;
use \CloseContacts\Models\Devices;
use \CloseContacts\Models\UsersRoles;
use \CloseContacts\Models\Users as UsersModel;
use \CloseContacts\Lib\Utilities\Str;
use \CloseContacts\Lib\Utilities\Date;
use \CloseContacts\Lib\Security\Utils as SecUtils;
<?php
namespace CloseContacts\Lib\DataServices;
use \Phalcon\Mvc\Model\Manager as ModelsManager;
use \Phalcon\Mvc\Model\Transaction\Failed as TxFailed;
use \Phalcon\Mvc\Model\Transaction\Manager as TxManager;
use \CloseContacts\Lib\Application\Services\Validation;
use \CloseContacts\Lib\Utilities\Date;
<?php
namespace CloseContacts\Lib\DataServices;
use Phalcon\Di\InjectionAwareInterface;
class DataServiceFactory implements InjectionAwareInterface
{
/* @var \Phalcon\Di\FactoryDefault - Dependency injector instance */
protected $_di;