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
# ~/.ssh/config | |
Host * | |
IdentityFile ~/.ssh/id_rsa | |
Host vps | |
Hostname 127.0.0.1 | |
Port 22001 | |
#IdentityFile ~/.ssh/other_key |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName ghost.example.com | |
ServerAlias ghost.example.com | |
CustomLog /var/log/apache2/ghost.example.com_access.log common | |
ErrorLog /var/log/apache2/ghost.example.com_error.log | |
# this redirect is always ignored | |
RedirectMatch 301 ^/services/whatever/?$ /other-page/ | |
#Exclude everything that needs a redirect |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
import { Component } from '@angular/core'; | |
import { NgForm } from '@angular/forms'; | |
import { NavController } from 'ionic-angular'; | |
import { SignupPage } from '../signup/signup'; | |
import { TabsPage } from '../tabs/tabs'; | |
import { UserData } from '../../providers/user-data'; | |
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 | |
# Modified Pi-hole script to generate a generic hosts file | |
# for use with dnsmasq's addn-hosts configuration | |
# original : https://github.com/jacobsalmela/pi-hole/blob/master/gravity-adv.sh | |
# Address to send ads to. This could possibily be removed, but may be useful for debugging purposes? | |
destinationIP="0.0.0.0" | |
outlist='./final_blocklist.txt' | |
tempoutlist="$outlist.tmp" |
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
URL= | |
URLSSL= | |
FORCEADMINSSL= | |
MAIL.FROM= | |
MAIL.TRANSPORT= | |
MAIL.OPTIONS.SERVICE= | |
MAIL.OPTIONS.AUTH.USER= | |
MAIL.OPTIONS.AUTH.PASS= | |
DB.CLIENT= | |
DB.SQLITE_FILENAME= |
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
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
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
{ | |
"url": "http://localhost:2368", | |
"database": { | |
"client": "sqlite3", | |
"connection": { | |
"filename": "content/data/ghost-dev.db" | |
}, | |
"debug": false | |
}, | |
"auth": { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5ZyDCgV5O0SQwnmIsiH7C1QfNVPVCpAjfs3ie9n0FoV/nIFK51shiczL6ugmnFPPIitiP1WhX9jnNVAtz6k5uuDppZgG37jE+aMo0lGaLP9c85PUNmqLOXlGpDyQ395KadMRfxqLs5G7uaScR0BUktDlUzSZbU2qcaeDfFTRbDrDusDZ8Gzb9TcSkvIWGcm7QPWdsHKtqHffYkjIyHEzlRPl8gdIPUzlZL2x06aluxN7Sen7Xvwxmxf+KCPKqhn09b/Kqi/Q1fWeuKaP89Q+1qRQEOQvu4Yt0u4FXnlv2QjQbTZKTj0UDnxLYNApJjbI8lJ6fnW1/x+U9vObI+M5b miav |
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 | |
sum=0 | |
for i in "$@" | |
do | |
echo $i | |
sum=`expr $sum + $i` | |
#sum=$(( $sum + $i )) | |
done | |
echo "SUM:$sum" |
OlderNewer