Skip to content

Instantly share code, notes, and snippets.

@saqibameen
saqibameen / source_zshrc_file.sh
Created November 21, 2017 15:55
Execute .zshrc file
source ~/.zshrc
@saqibameen
saqibameen / echo_current_zsh_theme.sh
Created November 21, 2017 15:56
Find Current Zsh Theme
echo $RANDOM_THEME
@saqibameen
saqibameen / set_zsh_default_shell.sh
Created November 21, 2017 16:05
Set zsh as default shell
# Launch zsh.
if [ -t 1 ]; then # Bash' output is terminal.
exec zsh # Run zsh.
fi
@saqibameen
saqibameen / user-settings.js
Created January 24, 2018 17:44
VSCode User Settings
{
"workbench.colorTheme": "Cobalt2",
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.lineHeight": 23,
"editor.letterSpacing": 0.5,
"files.trimTrailingWhitespace": true,
"editor.fontWeight": "400",
"prettier.eslintIntegration": true,
// this isn't really underline-thin but we hack it to be a thicker cursor
@saqibameen
saqibameen / wpengine-backup-excluded-files
Created April 6, 2018 13:14
Files Excluded by WPEngine in Backup
.*~ (These are typically drafts of files edited with a command line text editor)
.*/_wpeprivate (This directory is typically used for short term file storage)
.*.(svn|cvs|git|log|tmp|listing|cache|bak|swp)
.*/log.txt
.*/cache
.*/imagecache.*
.*/ics-importer-cache
.*/gt-cache
.*/wp-content/w3tc.*
.*/wp-content/w3-.*
@saqibameen
saqibameen / plugin-header.php
Created June 3, 2018 05:12
WordPress Plugin Header
<?php
/*
Plugin Name: Plugin Name
Description: Plugin Description.
Plugin URI: https://www.wordpress.org/plugin-name
Author: Saqib Ameen
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.txt
*/
@saqibameen
saqibameen / email-verification-api-endpoint
Last active July 10, 2018 05:52
Email Verification API HTTP Request Address
https://emailverification.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&emailAddress=EMAIL_ADDRESS_TO_BE_VALIDATED
@saqibameen
saqibameen / email-verifier-package.bash
Created July 10, 2018 06:34
Email Verification API npm package
npm install email-verifier --save-dev
@saqibameen
saqibameen / email-verifier.js
Last active July 19, 2018 21:39
Module to verify email addresses using Email Verification API
// Import the module.
const emailVerifier = require("email-verifier");
// Create a new instance with your username and password.
const verifier = new emailVerifier("your_username", "your_password");
// Time to verify the email address.
verifier.verify("xyz@domain.com", (err, data) => {
if (err) throw err; // Look for errors.
console.log(data); // Otherwise dump the results to the log.
@saqibameen
saqibameen / locationModule.json
Created July 23, 2018 23:07
Sample response of location module of ipstack API
{
"location": {
"geoname_id": 5358705,
"capital": "Washington D.C.",
"languages": [
{
"code": "en",
"name": "English",
"native": "English"
}