Skip to content

Instantly share code, notes, and snippets.

Robert Kraig robertkraig

  • McGraw-Hill Education
  • 92882
Block or report user

Report or block robertkraig

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
@robertkraig
robertkraig / whiptailmenu.bash
Created Aug 22, 2018 — 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.
View keybase.md

Keybase proof

I hereby claim:

  • I am robertkraig on github.
  • I am krob84 (https://keybase.io/krob84) on keybase.
  • I have a public key ASD09TH-Q2Sk9GTgP8WYoBnS_BVGX3LcIdCpf217wi2GRwo

To claim this, I am signing this object:

@robertkraig
robertkraig / sed cheatsheet
Created May 4, 2018 — forked from un33k/sed cheatsheet
magic of sed -- find and replace "text" in a string or a file
View sed cheatsheet
FILE SPACING:
# 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
robertkraig / package.json
Last active Jan 30, 2018
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
robertkraig / list-topic-branch-dates.sh
Created Sep 29, 2017
Get information on all topic branches related to their last commit date.
View list-topic-branch-dates.sh
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
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 {
View Http Form Post.cs
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 {
View git-cheat-list.md

Git cheat list

  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>
    
  • setting up a character used for comments

    git config core.commentchar <HERE_COMES_YOUR_COMMENT_CHAR>
    
You can’t perform that action at this time.