Skip to content

Instantly share code, notes, and snippets.

Joshua Canfield jcanfield

Block or report user

Report or block jcanfield

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
@fibergames
fibergames / dnsupdater.sh
Last active Jan 14, 2020
DigitalOcean dynamic DNS updater script for your subdomain
View dnsupdater.sh
#!/bin/bash
# Created by fibergames.net // Loranth Moroz // v.0.5
# Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/)
# This only works for Digitalocean - 10$ credit referral link: https://m.do.co/c/fed75101475f
# Edit token, domain, subdomain to fit your needs
# Substitute ipinfo.io with your own ip-checker e.g. ipecho.net/plain
# This is to be used with crontab -> example entry to run it every 3hours:
# 0 */3 * * * sh /path/to/script/dnsupdater.sh
# Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh
@jcanfield
jcanfield / ubuntu-anacrontab.text.sh
Last active Feb 27, 2017
[Ubuntu 16.04] Device Information
View ubuntu-anacrontab.text.sh
# /etc/anacrontab: configuration file for anacron
# See anacron(8) and anacrontab(5) for details.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root
# These replace cron's entries
@SkaTeMasTer
SkaTeMasTer / opennic
Created Feb 12, 2017
Open NIC Project -- get local DNS Servers -- https://www.opennicproject.org/nearest-servers/
View opennic
output:
Home › Your nearest OpenNIC DNS servers
Your nearest OpenNIC DNS servers
Are…
45.56.117.118 (ns6.ga.us) -- 99.42% uptime
138.197.25.214 (ns10.ny.us) -- 94.79% uptime
96.90.175.167 (ns4.co.us) -- 98.10% uptime
87.98.175.85 (ns10.fr) -- 98.75% uptime
@jcanfield
jcanfield / dns-servers_updated-2017.md
Last active Feb 22, 2018
DNS Server List for 2015/2017 (courtesy of http://sos.smerwick.com.tw)
View dns-servers_updated-2017.md

List of DNS Servers

'The following is a list of DNS Servers: both, Private and Public.'

DNS Servers

Why does DNS matter?

The Domain Name System (DNS) protocol is an important part of the web's infrastructure, serving as the Internet's phone book: every time you visit a website, your computer performs a DNS lookup. Complex pages often require multiple DNS lookups before they start loading, so your computer may be performing hundreds of lookups a day.

List of Public DNS Servers

@jknight2014
jknight2014 / atomicinstall.sh
Last active Mar 7, 2018
Installer for the Atomic Toolkit by HTPC Beginner
View atomicinstall.sh
#/bin/bash
#The one step installer for the AtoMiC-ToolKit
#Written by KnightCinema.com
touch /var/log/atomic-install.log
echo "Updating APT ..."
apt-get -y update > /var/log/atomic-install.log
echo "Installing Prerequsits"
apt-get -y install git-core nano python-software-properties dialog > /var/log/atomic-install.log
dialog --title "The AtoMiC Tool Kit installer" --yesno "This will install the AtomMiC toolkit as well as some prerequsits. Please be aware this software is provided with no warranties. Proceed at your own risk. Would you like to continue?" 8 100
# Cloaning into the OPT folder for organization.
@jcanfield
jcanfield / devenv.sh
Created Oct 27, 2016
A small bashscript to setup an web-development environment with gulp, bower, nodejs in Ubuntu/Ubuntu-based distributions. !!! Be careful: I recommend to only use it on a fresh installed system, otherwise it could mess up something !!!
View devenv.sh
#!/bin/bash
# Echo to nowhere for a more beautiful console output
sudo echo > /dev/null
# Add nodejs and sublime text ppa
echo ':: adding ppas'
sudo add-apt-repository -y ppa:chris-lea/node.js > /dev/null 2>&1
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 > /dev/null 2>&1
@jcanfield
jcanfield / dmesg.md
Last active Oct 25, 2016
Debugging and Fixing up an "old" HP Desktop turned headless-linux shell. Just, Repairing "old" HP Desktop which serves as a 'headless-linux' server for over 8 years now.
View dmesg.md

Re: Repairing "old" HP Desktop which serves as a 'headless-linux' server for over 8 years now

Pasted via Hastebin.com

[ 1264.077530] nouveau E[ PFIFO][0000:02:00.0] DMA_PUSHER - ch 4 [webbrowser-app[5933]] get 0x002005488c put 0x00200548a0 ib_get 0x0000014e ib_put 0x0000014f state 0x80000000 (err: INVALID_CMD) push 0x00400040

[ 1264.078772] nouveau E[ PGRAPH][0000:02:00.0] DATA_ERROR INVALID_ENUM

[ 1264.078791] nouveau E[ PGRAPH][0000:02:00.0] ch 4 [0x000f97f000 webbrowser-app[5933]] subc 3 class 0x8397 mthd 0x15dc data 0x00107b00

@jcanfield
jcanfield / index.html
Created Aug 17, 2016 — forked from arkaitzgarro/index.html
HTML5 Boilerplate
View index.html
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Plantilla HTML5</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.css">
@noeljackson
noeljackson / docker-compose-swarm.sh
Last active Feb 14, 2019
Run docker-compose with docker-machine and docker-swarm on digital ocean
View docker-compose-swarm.sh
#from https://www.linux.com/learn/how-use-docker-machine-create-swarm-cluster
#export digital ocean token
export DO_TOKEN="abcdefghijklmnopqrstuvwxyz"
#make keystore
docker-machine create -d digitalocean \
-digitalocean-access-token ${DO_TOKEN} \
--digitalocean-region "nyc1" \
--digitalocean-image="ubuntu-14-04-x64" \
--digitalocean-size "512mb" \
You can’t perform that action at this time.