Skip to content

Instantly share code, notes, and snippets.

View sriganesh's full-sized avatar
🤷‍♂️
¯\_(ツ)_/¯

Sriganesh sriganesh

🤷‍♂️
¯\_(ツ)_/¯
View GitHub Profile
@t2-support-gists
t2-support-gists / README
Last active April 17, 2019 03:09
SMS Ruby RESTFul App 1
AT&T API Platform Sample Apps
--------------------------------------
This file describes how to set up, configure and run the Ruby sample
applications using the AT&T API Platform services. It covers all steps
required to register the applications on DevConnect as well as running the
sample applications locally.
1. Configuration
2. Installation
@spivurno
spivurno / gw-gravity-forms-email-domain-validator.php
Last active September 16, 2021 13:05
Gravity Wiz // Gravity Forms // Email Domain Validator // Ban/Limit Email Domains for Gravity Form Email Fields
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-email-domain-validator.php
*/
/**
* Gravity Wiz // Gravity Forms // Email Domain Validator
*
* This snippets allows you to exclude a list of invalid domains or include a list of valid domains for your Gravity Form Email fields.
@cliftonlabrum
cliftonlabrum / gist:4589476
Created January 21, 2013 21:15
Change the Host Name on an Ubuntu server (Digital Ocean)
1. Rename the host in the web panel
2. Edit /etc/hostname
3. Edit /etc/hosts
4. Reboot
@navio
navio / domainr.html
Last active August 22, 2018 15:30
Angular Script to Query Domai.nr API
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-controller="domainSearcher">
<input ng-model="search" ng-change="getDomains()" type="search" placeholder="Search Domain" />
<input type="button" value="Go" ng-click="getDomains()" />
@imknight
imknight / gravity-form-save-acf
Last active November 22, 2017 21:29
WordPress Gravity Form Save Custom Meta Field for Advanced Custom Fields
add_action("gform_after_submission_1", "acf_post_submission", 10, 2);
function acf_post_submission ($entry, $form)
{
$post_id = $entry["post_id"];
update_field('address1', $entry['29.1'], $post_id);
update_field('address2', $entry['29.2'], $post_id);
update_field('address3', $entry['29.3'], $post_id);
}
@santthosh
santthosh / Python 2.7 Installation
Created October 23, 2014 21:16
Installing Python and latest PIP on Amazon EC2 Linux
# Adopted from http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2
# install build tools
sudo yum install make automake gcc gcc-c++ kernel-devel git-core -y
# install python 2.7 and change default python symlink
sudo yum install python27-devel -y
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python
@jrue
jrue / index.html
Last active January 16, 2025 14:37
HTML & CSS Wheel Of Fortune / Bingo Game
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Wheel of Fortune Bingo</title>
<!--
MIT License
@di
di / tlds
Created December 4, 2014 20:01
Valid Two-Letter Top Level Domains
ac
ad
ae
af
ag
ai
al
am
an
ao