Skip to content

Instantly share code, notes, and snippets.

View scriptburn's full-sized avatar

Rajneesh scriptburn

View GitHub Profile
{
"success": true,
"project": {
"calendar": "2",
"startDate": "2020-10-13 08:00:00"
},
"calendars": {
"rows": [
{
"id": "1",
<?php
namespace Scriptburn\ElequentUuid\Traits;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Ramsey\Uuid\Uuid;
/**
* Trait UuidModel
* @package App\Traits
*/
trait UuidModel
{
"name": "foursite",
"version": "1.2.1",
"description": "Foursite project management application",
"main": "webpack.config.js",
"scripts": {
"serve": "php artisan serve --port=8084",
"dev": "SET NODE_ENV=development & webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "SET NODE_ENV=development & webpack --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"mac": "export NODE_ENV=development&&webpack NODE_OPTIONS=--max-old-space-size=4096 --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
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
@scriptburn
scriptburn / .gcloudignore
Last active July 31, 2019 11:59 — forked from sangramrath/index.js
Node.js 8 Cloud Function to write to a Sheets document
# 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
@scriptburn
scriptburn / gist:2e2c3626358e6e8556e10c2c3d290865
Last active March 28, 2019 06:38
google-speech-to-text-supported-languages
{
"af":
{
"af-ZA": ["Afrikaans (Suid-Afrika)", "af-ZA", "Afrikaans (South Africa)"]
},
"am":
{
"am-ET": ["አማርኛ (ኢትዮጵያ)", "am-ET", "Amharic (Ethiopia)"]
},
"hy":
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 / setup.sh
Last active February 18, 2020 13:57
Install php7.2 apache2 mysql pgsql debian 9
#!/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'
@scriptburn
scriptburn / install.sh
Created April 17, 2018 00:33 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/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 / install_lamp_16.sh
Created April 13, 2018 18:48 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
#!/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