This file contains hidden or 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 | |
extensions="alefragnani.Bookmarks | |
arcticicestudio.nord-visual-studio-code | |
bmewburn.vscode-intelephense-client | |
cjhowe7.laravel-blade | |
dbaeumer.vscode-eslint | |
felixfbecker.php-debug | |
felixfbecker.php-intellisense | |
felixfbecker.php-pack |
This file contains hidden or 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
alias dock-stop="docker stop `docker ps -a -q|xargs`" | |
alias dock-up="docker-compose up -d nginx mysql phpmyadmin redis workspace maildev" |
This file contains hidden or 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 | |
extensions="alefragnani.Bookmarks | |
arcticicestudio.nord-visual-studio-code | |
bmewburn.vscode-intelephense-client | |
cjhowe7.laravel-blade | |
dbaeumer.vscode-eslint | |
felixfbecker.php-debug | |
felixfbecker.php-intellisense | |
felixfbecker.php-pack |
This file contains hidden or 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
curl https://getcomposer.org/installer | php; mv composer.phar /usr/local/bin/compose |
This file contains hidden or 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
import java.io.*; | |
import java.util.*; | |
public class Main | |
{ | |
private static Reader in; | |
private static PrintWriter out; | |
private static ArrayList<Edge>[] fw, bk; | |
public static final int INF = 100000000; |
This file contains hidden or 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
//In the settings.php add at the end. | |
include(dirname(__FILE__) . '/fast404.inc'); | |
// Add a file fast404.inc in the same folder than settings.php | |
$fast_404_page = dirname(__FILE__) . '/themes/fast_404.html'; #//Setup this 404 page. | |
include_once('./sites/all/modules/contrib/fast_404/fast_404.inc'); //Set the path |
This file contains hidden or 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
ProxyPassMatch .+/files/(css|js)/.+ ! | |
ProxyPassMatch ^/sites/(.+)/files/(.+)$ http://www.$1/sites/$1/files/$2 |
This file contains hidden or 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
#Rewrites the request, extracting a fragment of the file name and using a remote server. | |
location @fetchFromRemote { | |
rewrite ^/path/to/images/(.*)$ http://remoteserver.com/other/path/to/images/$1 redirect; | |
} | |
#Will try to see if we have the file in this server, is not will use fetchFromRemote | |
location ~ ^/path/to/images/.*(png|jpg|jpeg|gif|ico|swf)$ { | |
try_files $uri @fetchFromRemote; | |
} |
This file contains hidden or 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 | |
SRCROOT=`pwd`; | |
find . -name '.git' | while IFS=":" read TARGET | |
do | |
TARGET_DIR=`dirname $TARGET`; | |
cd $TARGET_DIR; | |
echo "=== UPDATE $TARGET_DIR ==="; | |
git pull; |