Skip to content

Instantly share code, notes, and snippets.

@damc-dev
damc-dev / index.html
Last active August 29, 2015 13:57
Custom Bookmarklets
<!--
- Description: Toggle Hide/Show Laravel Docs Side Bar Navigation
-
- Created date: 04/20/2014
-
- Created by: David McElligott
- damc.dev@gmail.com
-->
<html>
<a href="javascript:(function () {if (document.documentElement.contentEditable === false || document.designMode === 'off') {document.body.contentEditable='true';document.designMode='on';$('#docs').hide();$('#docs-content').css('float', 'left');void 0;} else if (document.documentElement.contentEditable === true || document.designMode === 'on') {document.body.contentEditable='false';document.designMode='off';$('#docs').show();$('#docs-content').css('float', 'right');void 0;}})();">HideBar</a>
@damc-dev
damc-dev / PrinterFriendlyWebpages.md
Last active August 29, 2015 14:01
Resources to help you make printer friendly HTML pages with CSS and JavaScript

#Printer Friendly Webpage Tips

####Resources to help you make printer friendly HTML pages with CSS and JavaScript

Simple Print Button

<form>
@damc-dev
damc-dev / AngularJS-Resources.md
Last active August 29, 2015 14:01
Resources for AngularJS for Reference
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Test Class Object in Javascript" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
@damc-dev
damc-dev / AgentMain.java
Created September 29, 2014 20:18
Byteman Custom Script Reloading
/*
* JBoss, Home of Professional Open Source
* Copyright 2008-10 Red Hat and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@damc-dev
damc-dev / mk-rspec.sh
Created March 11, 2015 12:59
Bash: Creates and Initializes a RSpec Test
#!/bin/bash
# Title: mk-rspec.sh
# Description: Creates and Initializes a RSpec Test.
# Author: David McElligott
# Date: 03/11/2015
# Version: 0.1
# Usage: bash mk-rspec.sh $TEST_DIR
# Dependencies: Bundler
# ===============================================
@damc-dev
damc-dev / BashCheatSheet.md
Last active July 2, 2023 00:42
Linux/Unix Cheat Sheet

Bash Cheat Sheet

If

If Directory Exists

Stack Overflow

if [ -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY exists.
fi
@damc-dev
damc-dev / SystemInfoUnixCommands.md
Last active December 23, 2016 14:43
Unix Commands - System Information

System Info Unix Commands

Memory Usage

free: Display information on available RAM

Usage

$ free
@damc-dev
damc-dev / WindowsCheatSheet.md
Created August 5, 2015 20:40
Useful Windows Commands

Windows Commands

Description:

A compiled list of Windows commands any administrator may find useful.

commands will be added as they are used, feel free to fork and add to it!

Command Options

@damc-dev
damc-dev / SPARQL_QuerySubaruModels.md
Last active August 29, 2015 14:27
Query dbpedia.org for vehicle models manufactured by Subaru