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
<?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 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\Lib\Utilities\Date;
use \CloseContacts\Models\UserVerifications;
use \CloseContacts\Models\Verifications as VerificationModel;
use \CloseContacts\Models\SmsMessagesSent as SmsMessagesSentModel;
class Verifications extends DataServiceAbstract
{
@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
@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 / vpn_psk_bingo.md
Created July 12, 2016 09:17 — forked from kennwhite/vpn_psk_bingo.md
Most VPN Services are Terrible
@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 / 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 / gpg.md
Created February 21, 2017 11:22 — forked from LauLaman/gpg.md
Use GPG to sign commits using git & PHPStorm

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf:

@nask0
nask0 / .htaccess
Created March 26, 2018 12:30 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/