Skip to content

Instantly share code, notes, and snippets.

View justinhartman's full-sized avatar
🏠
Working from home

Justin Hartman justinhartman

🏠
Working from home
View GitHub Profile
@justinhartman
justinhartman / Remote-Backups.md
Last active February 26, 2018 19:53
Steps to set up remote backups on a server

Install curlftpfs (if on Windows, use cygwin)

Use the following steps to set up remote backups on a server.

Create local mount path

$ mkdir -p /mnt/myftp

Mount the destination ftp site using curlftpfs

$ curlftpfs -o allow_other ftp://myusername:mypassword@ftp.mydomain.com /mnt/myftp

@justinhartman
justinhartman / debian-remote-ftp-server-mount.md
Last active February 26, 2018 20:03
Debian Remote FTP Server Mount Script

Debian Remote FTP Server Mount Script

The following is a Debian based Remote FTP Server Mount script that will connect to an FTP server at boot time and mount the fileshare to the filesystem at /mnt/ftpserver. This script depends on curlftpfs and umount and you may need to install them if they're not already installed. You can change the MOUNT path to any path on your server and please don't forget to replace the ftp details in the OPTIONS string.

Shell Script

Here's the script to use. Save it to disk, naming it something like ftp-mount.sh.

#! /bin/sh
### BEGIN INIT INFO
@justinhartman
justinhartman / gist:3f951865dd50dd05ca22
Last active February 26, 2018 19:48
Install w3af Web App Scanner on macOS 10.9.4 with MacPorts

Install w3af Web App Scanner on Mac OSX 10.9.4 with MacPorts

Follow these simple instructions to get w3af Web App Scanner installed on Mac OSX 10.9.4 with MacPorts.

Overview

To get w3af to run in GUI mode on Mac OS X is not as easy as running the following as the w3af docs suggest:

git clone --depth 1 https://github.com/andresriancho/w3af.git
cd w3af
@justinhartman
justinhartman / meta-tags.md
Created June 13, 2017 12:46 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@justinhartman
justinhartman / meta-tags.md
Last active June 13, 2017 15:16 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your websites subject'>
<meta name='copyright' content='company name'>
@justinhartman
justinhartman / license-badges.md
Created June 20, 2017 18:30 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
@justinhartman
justinhartman / embedded-gist.php
Last active February 26, 2018 19:39
Embedded Gist
<?php
/*
Ensure that the $age variable is set to null before running the myLife function.
*/
$age = nil
/**
* This function returns a message to the user telling them how old they are.
*
@justinhartman
justinhartman / embedded-gist.json
Created July 9, 2017 01:00
This is to be used to demonstrate how you embed Gists into your Github Pages website using Jekyll
{
"name": ".publish",
"path": ".publish",
"sha": "3f949857e8ed4cb106f9744e40b638a7aabf647f",
"size": 9,
"url": "https://api.github.com/repos/justinhartman/howto/contents/.publish?ref=master",
"html_url": "https://github.com/justinhartman/howto/blob/master/.publish",
"git_url": "https://api.github.com/repos/justinhartman/howto/git/blobs/3f949857e8ed4cb106f9744e40b638a7aabf647f",
"download_url": "https://raw.githubusercontent.com/justinhartman/howto/master/.publish",
"type": "file",
@justinhartman
justinhartman / blessing.md
Last active March 29, 2021 15:34
The most amazing copyright notice, ever!

Copyright Notice for Projects

Instead of a copyright notice contained inside of a source code file, I found the following blessing instead. I want to use this at some point.

*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
* May you do good and not evil.
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-uvm/uvm8_range_group_tree_test.o' failed
make[2]: *** [/tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-uvm/uvm8_range_group_tree_test.o] Error 1
CC [M] /tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-modeset/nvidia-modeset-linux.o
SYMLINK /tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-modeset/nv-modeset-kernel.o
LD [M] /tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-modeset.o
CC [M] /tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-drm/nvidia-drm.o
In file included from /tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-drm/nvidia-drm.c:27:0:
/tmp/selfgz1736/NVIDIA-Linux-x86_64-375.26/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory