" No terminal...
$ ssh-copy-id -p 443 -i ~/.ssh/id_rsa.pub [email protected]
SetEnvIf Origin "^(.*\.example\.com)$" ORIGIN_SUB_DOMAIN=$1 | |
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN |
(function(namespace, Handlebars) { | |
/** | |
* Retorna uma string no formato "uma-texto-a-ser-formatado" | |
* | |
* @param {String} text | |
* @param {Sttring} separador | |
* @return {String} | |
*/ | |
function slug(text, separator) { | |
var |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
git config --global alias.st "status -sb" | |
git config --global alias.co "checkout" | |
git config --global alias.cm = "commit" | |
git config --global alias.ac = "!git add -A && git commit" | |
git config --global alias.st "status -sb" | |
git config --global alias.tags "tag -l" | |
git config --global alias.branches "branch -a" | |
git config --global alias.remotes "remote -v" |
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "http") { | |
if(!headers_sent()) { | |
header("Status: 301 Moved Permanently"); | |
header(sprintf( | |
'Location: https://%s%s', | |
$_SERVER['HTTP_HOST'], | |
$_SERVER['REQUEST_URI'] | |
)); | |
exit(); | |
} |
" No terminal...
$ ssh-copy-id -p 443 -i ~/.ssh/id_rsa.pub [email protected]
/* If this function is imported, you can import scss files using: | |
@if not-imported("your-file") { @import "your-file"; } | |
*/ | |
$imported-once-files: () !default; | |
@function not-imported($name) { | |
$imported-once-files: $imported-once-files !global; | |
$module_index: index($imported-once-files, $name); | |
@if (($module_index == null) or ($module_index == false)) { |
# Reconhecimento de arquivos ssl | |
<Directory /app/web/public/.well-known> | |
Options +FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
svn log | perl -l40pe 's/^-+/\n/' |
Node.js wrapper which will download and proxy to node locally. This allows you to automatically manage the installed version of node.
NODEW_INSTALL_VERSION - an env variable to specify the version of node to install - Defaults to 4.4.7 NODEW_DIST_BASE_URL - an env variable to specify the binary download location - Defaults to NodeJS website