Skip to content

Instantly share code, notes, and snippets.

Building AirGapped Crypto Vault

Ashish Kumar ashfame

Building AirGapped Crypto Vault
View GitHub Profile
ashfame /
Last active Feb 25, 2018
Bash script to deploy lambdas to all regions using Up -
#!/usr/bin/env bash
declare -a regions=(
us-east-2 #US East (Ohio)
us-east-1 #US East (N. Virginia)
us-west-1 #US West (N. California)
us-west-2 #US West (Oregon)
ap-northeast-1 #Asia Pacific (Tokyo)
ap-northeast-2 #Asia Pacific (Seoul)
ap-south-1 #Asia Pacific (Mumbai)
ashfame / nginx.conf
Last active Jan 9, 2018
HTTPS Cop recommended Nginx SSL config -
View nginx.conf
# To be safe, make a backup of your existing ssl config file, before making any changes in it
# Test your SSL config by "nginx -t". You might need to use "sudo nginx -t".
# Once config is validated to be good, reload nginx by "sudo service nginx reload".
# Following config file was tested on nginx/1.10.3
server {
listen 443 ssl;
ashfame / index.php
Created Dec 12, 2011
SugarCRM REST API call examples
View index.php
* SugarCRM RESTS API Call examples
* REST API Wrapper -
<!doctype html>
<meta charset="utf-8">
View embed-code.html
<!--Begin CTCT Sign-Up Form-->
<!-- EFD 1.0.0 [Mon Aug 28 11:09:22 EDT 2017] -->
<div class="ctct-embed-signup">
<span id="success_message" style="display:none;">
<div style="text-align:center;">
<h3 class="article--title">
Thank you for taking the next step in healing your arthritis. You should receive your video in your email shortly.
ashfame / Best-way-to-wrap-up-your-jQuery-code-for-avoiding-conflicts.js
Created Feb 27, 2012
Best way to wrap up your jQuery code for avoiding conflicts
View Best-way-to-wrap-up-your-jQuery-code-for-avoiding-conflicts.js
// Regular jQuery code inside
ashfame / magento-set-defaults-address.php
Created Jun 13, 2013
Programmatically set default billing/shipping address of customers if they are not set in magento
View magento-set-defaults-address.php
require_once ("app/Mage.php");
$collection = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*');
foreach ($collection as $customer) {
# This script configures WordPress file permissions based on recommendations
# from
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
ashfame / config.xml
Created May 4, 2012
Overriding admin template in magento
View config.xml
<?xml version="1.0" encoding="UTF-8"?>
ashfame / delete-all-tags.php
Created Nov 25, 2011
Delete all tags of a WP install
View delete-all-tags.php
* Delete all tags of a WordPress blog
* @author Ashfame
* Place this file in root of your WordPress install and open it in the browser -
ashfame / after.php
Created Mar 17, 2014
Using WooCommerce email design in custom emails
View after.php
$email = '';
$subject = 'Custom stuff email';
$email_heading = 'Custom Heading';
$email_content = ''; // whatever it is
do_action( 'woocommerce_email_header', $email_heading );
echo $email_content; // or simply have HTML markup outside PHP tags here
You can’t perform that action at this time.