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 *.*
<?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 | |
{ |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Short version: Use Streisand. Use Tor. Use Signal.
This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016
Provider / "Secret" Key
#!/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 |
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.
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
:
#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/ |