Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Robert Kraig robertkraig

I may be slow to respond.
View GitHub Profile
View surveyjs_definition.json
"$schema": "",
"title": "SurveyJS Library json schema",
"type": "object",
"properties": {
"pages": {
"type": "array",
"items": {
"$ref": "#/definitions/page"
robertkraig / docker-compose.yml
Created June 27, 2020 00:52 — forked from seanhandley/docker-compose.yml
How To Set Up Docker For Mac (Mojave) with Native NFS
View docker-compose.yml
version: '2'
- "nfsmount:${CONTAINER_DIR}"
driver: local
robertkraig / whiptailmenu.bash
Created August 22, 2018 20:35 — forked from wafsek/whiptailmenu.bash
A Example of whiptail menu with functions
View whiptailmenu.bash
#! /bin/bash
# This program is just an example of how to make a whiptail menu and some basic commands.
# Copyright (C) 2016 Baljit Singh Sarai
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.

Keybase proof

I hereby claim:

  • I am robertkraig on github.
  • I am krob84 ( on keybase.
  • I have a public key ASD09TH-Q2Sk9GTgP8WYoBnS_BVGX3LcIdCpf217wi2GRwo

To claim this, I am signing this object:

robertkraig / sed cheatsheet
Created May 4, 2018 19:23 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
View sed cheatsheet
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
robertkraig / package.json
Last active January 30, 2018 22:37
screenshot css element using puppeteer
View package.json
"private": true,
"scripts": {},
"dependencies": {
"axios": "^0.17",
"jquery": "^3.2",
"lodash": "^4.17.4",
"puppeteer": "^1.0.0",
"command-line-args": "^5.0.1",
"command-line-usage": "^4.1.0"
robertkraig /
Created September 29, 2017 22:48
Get information on all topic branches related to their last commit date.
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
robertkraig / SimpleHTTPServer.cs
Created June 5, 2017 07:33 — forked from aksakalli/SimpleHTTPServer.cs
SimpleHTTPServer in C#
View SimpleHTTPServer.cs
// MIT License - Copyright (c) 2016 Can Güney Aksakalli
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
View Http Form Post
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Collections.Specialized;
class DataService {
public NameValueCollection Query { get; set; }
public string Endpoint { get; set; }
public FormUrlEncodedContent QueryEncoded {