Skip to content

Instantly share code, notes, and snippets.

@tap52384
tap52384 / monokai.md
Created Oct 7, 2021 — forked from r-malon/monokai.md
Monokai colors in RGB and HEX format, taken from Sublime Text 3
View monokai.md

Monokai Colors in RGB and HEX format


  • Background: (46, 46, 46); #2e2e2e
  • Comments: (121, 121, 121); #797979
  • White: (214, 214, 214); #d6d6d6
  • Yellow: (229, 181, 103); #e5b567
  • Green: (180, 210, 115); #b4d273
  • Orange: (232, 125, 62); #e87d3e
  • Purple: (158, 134, 200); #9e86c8
@tap52384
tap52384 / oracle-reference.sql
Created Aug 26, 2020
Helpful Oracle SQL queries
View oracle-reference.sql
-- See what has access to a particular table (direct and inherited):
select Grantee,'Granted Through Role' as Grant_Type, role, table_name
from role_tab_privs rtp, dba_role_privs drp
where rtp.role = drp.granted_role
and table_name = :tablename
union
select Grantee,'Direct Grant' as Grant_type, null as role, table_name
from dba_tab_privs
where table_name = :tablename;
@tap52384
tap52384 / states_hash.json
Created Dec 25, 2019 — forked from mshafrir/states_hash.json
US states in JSON form
View states_hash.json
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@tap52384
tap52384 / README.md
Last active Jun 11, 2022
Install Windows on External Drive for macOS
View README.md
View .gitconfig
[user]
name = name
email = email
[core]
excludesfile = /Users/username/.gitignore_global
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
@tap52384
tap52384 / getgrav.sh
Last active Sep 25, 2018
Installs multiple versions of PHP on macOS
View getgrav.sh
#!/bin/bash
APACHE_CONF=/usr/local/etc/httpd/httpd.conf
# Checks whether Homebrew is installed or not
function checkBrew {
installed brew
BREW_INSTALLED=$?
}
@tap52384
tap52384 / index.js
Last active Dec 10, 2020
Pre-Request Script for Generating JWTs (Postman)
View index.js
/*
https://jwt.io/introduction/
In its compact form, JSON Web Tokens consist of three parts separated by dots (.), which are:
Header
Payload
Signature
Therefore, a JWT typically looks like the following.
@tap52384
tap52384 / readme.md
Last active Jun 23, 2022
Bootcamp via Virtualbox 5.2 on macOS Mojave
@tap52384
tap52384 / whois.php
Created Mar 8, 2018
PHP code to get WHOIS information of a domain
View whois.php
<?php
/*************************************************************************
php easy :: whois lookup script
==========================================================================
Author: php easy code, www.phpeasycode.com
Web Site: http://www.phpeasycode.com
Contact: webmaster@phpeasycode.com
*************************************************************************/
$domain = $_GET['domain'];
View macosx-install-php-oracle-oci8.md

Installation

This procedure is tested on Mac OS X 10.14.0 with Xcode Developer Tools installed (xCode).

PHP 5.6, 7.0, 7.1, and 7.2 installed with Homebrew following the instructions here.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):