Skip to content

Instantly share code, notes, and snippets.

Rajneesh scriptburn

Block or report user

Report or block scriptburn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Add whatsapp button to shopify
<!-- Add this code to snippet folder as scriptburn-whatsapp-snippet -->
<!-- scriptburn-whatsapp-snippet start -->
<div id="loading"> <img id="loading-image" src="http://i.stack.imgur.com/FhHRx.gif" alt="Loading..." /><span id="loading-span">Please wait..</span>
</div>
<style type="text/css">
.modal {
@scriptburn
scriptburn / install_lamp_16.sh
Created Apr 13, 2018 — forked from ankurk91/install_lamp_18.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
View install_lamp_16.sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
@scriptburn
scriptburn / install.sh
Created Apr 17, 2018 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
View install.sh
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@scriptburn
scriptburn / setup.sh
Last active Aug 22, 2018
Install php7.2 apache2 mysql pgsql debian 9
View setup.sh
#!/usr/bin/env bash
cecho() {
declare -A colors
colors=(
['black']='\E[0;47m'
['red']='\E[0;31m'
['green']='\E[0;32m'
['yellow']='\E[0;33m'
View SimpleCache.js
var SimpleCache = function() {
var _values = {};
var getTime = function() {
return Date.now() / 1000 | 0
}
this.get = function(key) {
if (!(key in _values)) {
return null
}
var vl = _values[key];
@scriptburn
scriptburn / gist:2e2c3626358e6e8556e10c2c3d290865
Last active Mar 28, 2019
google-speech-to-text-supported-languages
View gist:2e2c3626358e6e8556e10c2c3d290865
{
"af":
{
"af-ZA": ["Afrikaans (Suid-Afrika)", "af-ZA", "Afrikaans (South Africa)"]
},
"am":
{
"am-ET": ["አማርኛ (ኢትዮጵያ)", "am-ET", "Amharic (Ethiopia)"]
},
"hy":
@scriptburn
scriptburn / .gcloudignore
Last active Jul 31, 2019 — forked from sangramrath/index.js
Node.js 8 Cloud Function to write to a Sheets document
View .gcloudignore
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
View unattended openvpn install on debian 9
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
export AUTO_INSTALL=y
export APPROVE_INSTALL=y
export ENDPOINT=$(curl -4 ifconfig.co)
export APPROVE_IP=y
export IPV6_SUPPORT=n
export PORT_CHOICE=1
export PROTOCOL_CHOICE=1
export DNS=1
You can’t perform that action at this time.