Skip to content

Instantly share code, notes, and snippets.

Domenic Horner tgxn

Block or report user

Report or block tgxn

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 kubernetes-on-centos.md

All nodes

  • Swap must be disabled
    • swapoff -a
    • Comment out reference to swap in /etc/fstab
  • yum -y install docker
  • systemctl enable docker && systemctl start docker
  • Add Kubernetes repo
    cat <<EOF > /etc/yum.repos.d/kubernetes.repo
@jonathanjacob
jonathanjacob / client_script.js
Last active May 5, 2019
Service Portal Impersonation
View client_script.js
//Be sure and include spModal in the function
function ($rootScope, $scope, snRecordWatcher, spUtil, spModal, $location, $uibModal, cabrillo, $timeout) {
//Impersonation
$scope.openImpersonationDialog = function(){
spModal.open({
title: "Impersonate User",
widget: "service-catalyst-impersonate",
buttons: [
{label:'Close', cancel: true}
@justarandomgeek
justarandomgeek / gist:2c47b4aaee12f717227f867a4c030fae
Last active Jul 9, 2018
Factorio Command: Remove all trees in 5000 tile radius
View gist:2c47b4aaee12f717227f867a4c030fae
/c
pos = game.player.position
area = {{pos.x - 5000, pos.y - 5000}, {pos.x + 5000, pos.y + 1.5}}
for _, entity in pairs(game.player.surface.find_entities_filtered{area = area, type = "tree"}) do
entity.die()
end
@raydog
raydog / bullshit.js
Last active Oct 24, 2019
Bullshit as a Service
View bullshit.js
var E_PREFIX_RATE = 0.25;
// All of our word lists:
var _word_lists = {
verb : [
"implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace",
"enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize",
"morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate",
@asimpkin
asimpkin / RackImage.php
Last active Mar 16, 2018
Dynamic Rack Generation from ServiceNow CMDB Rack Sys_ID
View RackImage.php
<?php
include('../common.inc.php'); // Contains defintions for INSTANCE, USER, PASS
//////////////////////////////////
// GET THE RACK FROM sys_id in URL
$q='sys_id='.$_GET[sys_id];
$query=urlencode($q);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://'.INSTANCE.'.service-now.com/cmdb_ci_rack_list.do?XML&useUnloadFormat=true&sysparm_query='.$query);
You can’t perform that action at this time.