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
#!/bin/bash | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) |
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 | |
namespace App; | |
class SQLiteDumper extends \SQLite3 | |
{ | |
private $sql; | |
public function __construct(String $sqlite_path) | |
{ |
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 | |
rm -rf line | |
mkdir -p line | |
cd line | |
# Get latest release | |
echo "Finding latest release" | |
LOCATION=$(curl -s https://api.github.com/repos/Iconscout/unicons/releases/latest \ | |
| grep "tag_name" \ |
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
Homebrew build logs for imagemagick on macOS 10.14.2 | |
Build date: 2019-01-14 17:12:26 |
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
Homebrew build logs for imagemagick on macOS 10.14.2 | |
Build date: 2019-01-14 17:12:26 |
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 php | |
<?php | |
if ($argc <=1) { | |
echo "Please specify a project path:\n $argv[0] /path/to/laravel/project"; | |
exit(1); | |
} elseif (!file_exists($argv[1])) { | |
echo "Please specify a valid project path:\n $argv[1] does not exists"; | |
exit(1); | |
} elseif (!file_exists(sprintf('%s/composer.json', $argv[1])) || !property_exists((json_decode(file_get_contents(sprintf('%s/composer.json', $argv[1]))))->require, 'laravel/framework')) { |
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 | |
function session_handler_open($save_path, $session_name) { | |
return TRUE; | |
} | |
function session_handler_close() { | |
return TRUE; | |
} |
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
#!/bin/sh | |
## Homebrew | |
if test ! $(which brew) | |
then | |
echo 'Installation de Homebrew' | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
brew update |
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
function growl() { | |
terminal-notifier -activate com.googlecode.iterm2 -sender com.googlecode.iterm2 -title "Hep !!" -subtitle "iTerm2 a un message :" -message "$@" -timeout 3 & say "$@" -v Thomas > /dev/null 2>&1 | |
} | |
alias upgrade-osx='sudo softwareupdate -i -a && mas outdated && mas upgrade' | |
alias upgrade-brew='brew update && brew upgrade && brew cleanup --force && brew prune && brew cask cleanup && brew bundle dump --global --force' | |
alias upgrade-cask='for c in `brew cask list`; do ! brew cask info $c | grep -qF "Not installed" || brew cask install $c; done && brew cask cleanup' |
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
version: '2' | |
services: | |
dnsmasq: | |
image: andyshinn/dnsmasq:latest | |
restart: always | |
ports: | |
- "53535:53/tcp" | |
- "53535:53/udp" | |
cap_add: | |
- NET_ADMIN |
NewerOlder