Skip to content

Instantly share code, notes, and snippets.

View kogent's full-sized avatar

Mark Carey kogent

View GitHub Profile
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@kogent
kogent / settings.json
Created April 10, 2018 06:55
vscode settings
{
"files.trimTrailingWhitespace": true,
"files.associations": {
"**/defaults/**/*": "ansible-advanced",
"**/tasks/**/*.yml" : "ansible-advanced",
"**/handler/*.yml" : "ansible-advanced",
"**/*_vars/**/*.yml" : "ansible-advanced",
"**/roles/**/*.yml" : "ansible-advanced",
"**/playbooks/**/*.yml" : "ansible-advanced",
"**/*ansible*/**/*.yml" : "ansible-advanced",
### Keybase proof
I hereby claim:
* I am kogent on github.
* I am kogentmark (https://keybase.io/kogentmark) on keybase.
* I have a public key ASAYwQGZesytxbEccLQ3Vl5nlp9iQ3R_PUX-2yUAOzTN7go
To claim this, I am signing this object:
@kogent
kogent / 0_reuse_code.js
Created March 11, 2016 22:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# HG changeset patch
# User Sean Farley <[email protected]>
# Date 1382624667 -28800
# Thu Oct 24 22:24:27 2013 +0800
# Node ID dd6d51b7e12be5fab94a8779e890c5558e4d4001
# Parent 86a3bc5c8ff689a291e86950a3d8fd327f42b870
partial import
wiggled scp
@kogent
kogent / test_command.pl
Last active March 11, 2016 23:25
test_command
sub test_command(@) {
my $name = $_[1];
my $command = $_[2];
my $host = $_[3];
my $arg_string = $_[4];
my $monarch_home = $_[5];
my $service_desc = $_[6];
my $nagios_ver = $_[7];
$arg_string =~ s/$name!//;
unless ($service_desc) { $service_desc = 'service_desc' }
@kogent
kogent / giftube.rb
Last active March 11, 2016 23:25 — forked from marcel/gist:2100703
giftube – Generates an animated gif from a YouTube url.
#!/usr/bin/env ruby
# giftube – Generates an animated gif from a YouTube url.
#
# Usage:
#
# giftube [youtube url] [minute:second] [duration]
#
# ex.
#
@kogent
kogent / log4j.xml
Created September 23, 2011 17:49
make gw quieter
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!--
=====================================================================
-->
<!--
-->
<!--
Log4j Configuration
-->
@kogent
kogent / jira.disable.cmd+c.user.js
Created May 5, 2010 04:54
Jira greasekit script to disable keyup c hotkey.
// ==UserScript==
// @name Jira Disable keyup c shortcut
// @namespace markcarey.org
// @include *jira*/browse/*-*
// ==/UserScript==
document.getElementsByTagName('head')[0].appendChild(jQuery(document).unbind("keyup", "c"));
@kogent
kogent / TextMate gemspec snippet.png
Created April 5, 2010 19:21 — forked from mislav/TextMate gemspec snippet.png
TextMate snippet to quickly populate a fresh gemspec
TextMate gemspec snippet.png