Skip to content

Instantly share code, notes, and snippets.

View davebeach's full-sized avatar

David Beach davebeach

View GitHub Profile
@davebeach
davebeach / xs2xscli.txt
Created June 6, 2018 21:33 — forked from paschmann/xs2xscli.txt
SAP HANA XS Adanced (XS2) CLI Commands
GETTING STARTED:
login, l Log user in
logout Log user out
target, t Set or view the targeted org or space
api Set or view target api url
APPS:
apps, a List all apps in the target space
app Display the status and information about an app
@davebeach
davebeach / googlesheetsjson.js
Last active June 4, 2018 13:28 — forked from mhawksey/gist:1442370
google sheets script to pull json file into google sheets.
function getJSON(aUrl,sheetname) {
//var sheetname = "test";
//var aUrl = "https://drive.google.com/open?id=1_aSak09jFHtsTaItqh9FmEIeIUPynFWd";
var response = UrlFetchApp.fetch(aUrl); // get feed
var dataAll = JSON.parse(response.getContentText()); //
var data = dataAll.value.items;
for (i in data){
data[i].pubDate = new Date(data[i].pubDate);
data[i].start = data[i].pubDate;
}
@davebeach
davebeach / adb-screenshot.sh
Last active June 11, 2017 19:50 — forked from hkurokawa/adb-screenshot.sh
A shell script to take a screen shot of the android device, resize it and copy to clipboard
#! /bin/bash
## This script is for taking a screen shot of an Android device.
## If possible, it tries to resize the image file and then copy to the clipboard.
##
## Note the script generates screenshot_yyyyMMddHHmmss.png and screenshot_yyyyMMddHHmmss_s.png
## under /sdcard on the device (you can specify another location with '-t' option)
## and copies it to the current working directory.
##
## The script passes unrecognized arguments to adb command, which means you can specify "-e" or "-d"
@davebeach
davebeach / NewUserRegisterForm.php
Created June 1, 2017 07:52 — forked from davidDuymelinck/NewUserRegisterForm.php
Extend drupal 8 user register form
<?php
namespace Drupal\my_module\Form;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Entity\EntityFormBuilderInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
@davebeach
davebeach / .bash_profile
Last active January 4, 2018 15:43 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management