Skip to content

Instantly share code, notes, and snippets.

View letsjustfixit's full-sized avatar
🏗️
Building stuff..

Fixer letsjustfixit

🏗️
Building stuff..
View GitHub Profile
@letsjustfixit
letsjustfixit / .ssh_per_config
Last active August 29, 2015 14:21
SSh config direcitve
# ~/.ssh/config
Host *
IdentityFile ~/.ssh/id_rsa
Host vps
Hostname 127.0.0.1
Port 22001
#IdentityFile ~/.ssh/other_key
@letsjustfixit
letsjustfixit / vhost.conf
Created May 18, 2015 19:37
Ghost apache reverse proxy + 301 redirect
<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
@letsjustfixit
letsjustfixit / bashrc
Last active March 26, 2018 06:58
bashrc, screenrc
# ~/.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
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';
@letsjustfixit
letsjustfixit / make-mega-adblock-hostsfile.sh
Created February 14, 2017 01:55
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
#!/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"
@letsjustfixit
letsjustfixit / .env
Last active March 13, 2017 00:09
Ghost lts
URL=
URLSSL=
FORCEADMINSSL=
MAIL.FROM=
MAIL.TRANSPORT=
MAIL.OPTIONS.SERVICE=
MAIL.OPTIONS.AUTH.USER=
MAIL.OPTIONS.AUTH.PASS=
DB.CLIENT=
DB.SQLITE_FILENAME=
// 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');
{
"url": "http://localhost:2368",
"database": {
"client": "sqlite3",
"connection": {
"filename": "content/data/ghost-dev.db"
},
"debug": false
},
"auth": {
@letsjustfixit
letsjustfixit / miav.pub
Created November 15, 2017 21:19
miav public keygvv
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5ZyDCgV5O0SQwnmIsiH7C1QfNVPVCpAjfs3ie9n0FoV/nIFK51shiczL6ugmnFPPIitiP1WhX9jnNVAtz6k5uuDppZgG37jE+aMo0lGaLP9c85PUNmqLOXlGpDyQ395KadMRfxqLs5G7uaScR0BUktDlUzSZbU2qcaeDfFTRbDrDusDZ8Gzb9TcSkvIWGcm7QPWdsHKtqHffYkjIyHEzlRPl8gdIPUzlZL2x06aluxN7Sen7Xvwxmxf+KCPKqhn09b/Kqi/Q1fWeuKaP89Q+1qRQEOQvu4Yt0u4FXnlv2QjQbTZKTj0UDnxLYNApJjbI8lJ6fnW1/x+U9vObI+M5b miav
@letsjustfixit
letsjustfixit / sum.bash
Created November 27, 2017 15:42
Opre, sum
#!/bin/bash
sum=0
for i in "$@"
do
echo $i
sum=`expr $sum + $i`
#sum=$(( $sum + $i ))
done
echo "SUM:$sum"