Skip to content

Instantly share code, notes, and snippets.

Jacob Bearce JacobDB

Block or report user

Report or block JacobDB

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .htaccess
# 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.
# ######################################################################
@JacobDB
JacobDB / config.php
Last active Apr 24, 2017
Example settings for triggering a gulp task when using https://github.com/vicenteguerra/git-deploy
View config.php
<?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');
@JacobDB
JacobDB / install.sh
Created Apr 26, 2017
Install Jekyll on WSL
View install.sh
sudo apt-get install ruby ruby-dev gcc
sudo gem install jekyll bundler
@JacobDB
JacobDB / navigation.html
Created Apr 30, 2017 — forked from danblakemore/navigation.html
Nested Jekyll page navigation without plugins
View navigation.html
{% capture html %}
{% assign childCount = '' %}
{% comment %} Make sure there will be pages before making the ul tag. {% endcomment %}
{% assign entries = site.pages | sort: "path" %}
{% for entry in entries %}
{% capture slug %}{{ entry.url | split: "/" | last }}{% endcapture %}
{% capture current %}{{ entry.url | remove: slug | remove: "//" | append: "/" }}{% endcapture %}
{% if current == include.context %}
@JacobDB
JacobDB / alt-arrow-home-end.ahk
Last active Jun 17, 2017
Remap !→ to "End" and !← to "Home" to make switching between Mac & Windows easier
View alt-arrow-home-end.ahk
!Left::
Send, {Home}
Return
!Right::
Send, {End}
Return
@JacobDB
JacobDB / fix-web-permissions.sh
Last active Jun 23, 2017
Small script to fix web permissions
View fix-web-permissions.sh
#!/bin/bash
directory=$1
if [ "$directory" == "" ]
then
echo -e $"${0##*/}: missing operand"
exit 1;
fi;
if ! [[ -r "$directory" && -w "$directory" ]]
View break-a-skypebot.js
// config/db.js
module.exports = {
url : 'mongodb://localhost/acquisition'
}
@JacobDB
JacobDB / ftp.json
Last active Oct 2, 2017
ftp.json for use with my new-site and new-site-static repositories.
View ftp.json
{
"dev": {
"host": "",
"user": "",
"pass": "",
"path": ""
},
"dist": {
"host": "",
"user": "",
@JacobDB
JacobDB / .gitlab-ci.yml
Last active Nov 13, 2017 — forked from RafalSladek/ .gitlab-ci.yml
gitlab ci file for gulp build pipeline with the latest nodejs
View .gitlab-ci.yml
image: node:latest
cache:
paths:
- node_modules/
before_script:
- npm install -g gulp
- npm install
@JacobDB
JacobDB / .nvmrc
Created Mar 26, 2018
Configuration file to use Node LTS with NVM
You can’t perform that action at this time.