This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# default: deploy from master branch | |
_BRANCH=${1:-master} | |
# php binary | |
_PHP=${2:-php8.2} | |
# path to composer | |
_COMPOSER=${3:-~/.composer/composer} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# default: deploy from master branch | |
_BRANCH=${1:-master} | |
# php binary | |
_PHP=${2:-php8.2} | |
# path to composer | |
_COMPOSER=${3:-~/.composer/composer} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use EventSauce\ObjectHydrator\DefinitionDumper; | |
use EventSauce\ObjectHydrator\DefinitionProvider; | |
use EventSauce\ObjectHydrator\ObjectHydrator; | |
use EventSauce\ObjectHydrator\ObjectHydratorDumper; | |
use JsonMapper\Cache\ArrayCache; | |
use JsonMapper\Handler\PropertyMapper; | |
require 'vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use JsonMapper\Cache\ArrayCache; | |
use JsonMapper\Handler\PropertyMapper; | |
require 'vendor/autoload.php'; | |
function bench($what = 'Bench', $echo = true) | |
{ | |
global $DEBUG_TIME; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <disassembler@dasm.cz> | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# | |
# Note from author: Never run scripts without reading them & understanding what they do. | |
# | |
# Addition: One command to rule them all, One command to find it, and One command to Run it! | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# -- config -- | |
$INTERVAL = 5; // sec | |
$CODE = '1801sk20'; | |
$COUNTRY = 'it'; | |
$BUY_URL = "https://www.kimsufi.com/it/ordine/kimsufi.xml?reference=$CODE"; | |
# ------------ | |
function notify() { | |
global $CODE, $BUY_URL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: EsameFebbraio2018 | |
TORNEO = { | |
Nome:string, Citta:string, Stato:string | |
Wimbledon, Wimbledon, Inghilterra | |
"Fed Cup", Napoli, Italia | |
"Coppa Davis", Parigi, Francia | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Treni | |
TRENO = { | |
num_treno:number, categoria:string, partenza:number, arrivo:number, destinazione:string | |
9716, frecciarossa, 10.02, 11.15, milano | |
9728, frecciarossa, 13.02, 14.15, milano | |
9732, frecciarossa, 14.02, 15.15, milano | |
2068, regionale, 12.45, 14.35, milano |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Laravel install script | |
PHP_PATH=php | |
cp .env.example .env | |
nano .env | |
$PHP_PATH composer.phar install --no-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Laravel deploy script | |
PHP_PATH=php | |
$PHP_PATH artisan down | |
$PHP_PATH composer.phar install --no-dev | |
$PHP_PATH artisan cache:clear |
NewerOlder