View gist:a787215d9adcc8e6aab894ddd7786595
{ | |
"success": true, | |
"project": { | |
"calendar": "2", | |
"startDate": "2020-10-13 08:00:00" | |
}, | |
"calendars": { | |
"rows": [ | |
{ | |
"id": "1", |
View uuid
<?php | |
namespace Scriptburn\ElequentUuid\Traits; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Ramsey\Uuid\Uuid; | |
/** | |
* Trait UuidModel | |
* @package App\Traits | |
*/ | |
trait UuidModel |
View package.json
{ | |
"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", |
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 |
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 gist:2e2c3626358e6e8556e10c2c3d290865
{ | |
"af": | |
{ | |
"af-ZA": ["Afrikaans (Suid-Afrika)", "af-ZA", "Afrikaans (South Africa)"] | |
}, | |
"am": | |
{ | |
"am-ET": ["አማርኛ (ኢትዮጵያ)", "am-ET", "Amharic (Ethiopia)"] | |
}, | |
"hy": |
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]; |
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 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` |
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 |
NewerOlder