Skip to content

Instantly share code, notes, and snippets.

@damc-dev
damc-dev / runBashScript.bat
Last active September 27, 2024 10:08
Execute Bash Script (Using Git Bash) from Windows Task Scheduler
cmd /c ""C:\Program Files (x86)\Git\bin\bash.exe" --login -i -- H:\Daily_Reports\yesterdayTogglReport.sh"
@damc-dev
damc-dev / ReportPlayerPositions.cs
Last active January 9, 2016 16:48
Reign of Kings Oxide Plugin to Update Player Positions to Firebase on interval
using System.Collections.Generic;
using System;
using System.Data;
using System.Reflection;
using Newtonsoft.Json;
using UnityEngine;
using Oxide.Core;
using Oxide.Core.Plugins;
@damc-dev
damc-dev / prettyprintgist.md
Created November 6, 2015 14:57 — forked from magnetikonline/README.md
Bookmarklet to pretty print Gist pages without the usual page chrome, just content. Handy for Markdown document printing.

Pretty print bookmarklet helper for Gist pages

Create a new bookmark somewhere handy in your browser with the following URL:

javascript:var el=document.createElement('style');el.media='print';el.innerHTML='#header,.pagehead.repohead,.gist-description.container,.file-box .meta,#comments,.js-comment-form,#footer{display:none;}.file-box{border:0!important;}';document.getElementsByTagName('head')[0].appendChild(el);alert('Please consider the environment before printing :)');
  • Navigate to your Gist of choice
  • Hit the bookmarklet
  • Now print
@damc-dev
damc-dev / SPARQL_QuerySubaruModels.md
Last active August 29, 2015 14:27
Query dbpedia.org for vehicle models manufactured by Subaru
@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 / 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 / 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 / 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 / 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.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Test Class Object in Javascript" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>