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
{ | |
"dev": { | |
"host": "", | |
"user": "", | |
"pass": "", | |
"path": "" | |
}, | |
"dist": { | |
"host": "", | |
"user": "", |
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 | |
$url = "http://wkqx.tunegenie.com/"; | |
$title = "WKQX RSS Feed"; | |
$description = "A constantly updated feed for WKQX's playlist"; | |
$userAgent = "Googlebot/2.1 (http://www.googlebot.com/bot.html)"; | |
header("Content-type: text/xml; charset=utf-8", true); | |
echo "<?xml version='1.0' encoding='UTF-8' ?>" . PHP_EOL; | |
echo "<rss version='2.0'>" . PHP_EOL; |
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
// config/db.js | |
module.exports = { | |
url : 'mongodb://localhost/acquisition' | |
} |
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 -ue | |
#Invoice Ninja Self-Hosted Update | |
#PLEASE SEE THE README AT https://pastebin.com/nwcSH0TH | |
#SET INVOICE NINJA INSTALL AND STORAGE PATHS | |
#-------------------------------------------------------- | |
sudo updatedb | |
ninja_home="$(locate -b '\composer.json' | xargs grep -l "invoiceninja/invoiceninja" | xargs -n 1 dirname)" | |
ninja_storage="$ninja_home/storage" |
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
# Apache Server Configs v2.14.0 | MIT License | |
# https://github.com/h5bp/server-configs-apache | |
# (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
# access to the main server configuration file (which is usually called | |
# `httpd.conf`), you should add this logic there. | |
# | |
# https://httpd.apache.org/docs/current/howto/htaccess.html. | |
# ###################################################################### |
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
image: node:latest | |
cache: | |
paths: | |
- node_modules/ | |
before_script: | |
- npm install -g gulp | |
- npm install |
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
// Replace letters | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@return $string; | |
} |
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
atom() { | |
target_path=$(wslpath -a -w $(readlink -f $1)) # resolve the path | |
(/mnt/c/Windows/System32/cmd.exe /C "atom.cmd $target_path" &> /dev/null) # open the 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
open() { | |
target_path=$(wslpath -a -w $(readlink -f $1)) # resolve the path | |
/mnt/c/Windows/explorer.exe $target_path # open the 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
<?php | |
define('TOKEN', 'some-secret-token'); | |
define('REMOTE_REPOSITORY', 'git@github.com:username/repository.git'); | |
define('DIR','/var/www/repository/'); | |
define('BRANCH','refs/heads/master'); | |
define('LOGFILE', 'log.txt'); | |
define('GIT', '/usr/bin/git'); | |
define('AFTER_PULL', '/usr/bin/node ./node_modules/gulp/bin/gulp.js default --dist'); |
OlderNewer