Skip to content

Instantly share code, notes, and snippets.

View davebeach's full-sized avatar

David Beach davebeach

View GitHub Profile
@davebeach
davebeach / .gitconfig
Created June 13, 2018 23:37
my .gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
excludesfile = /Users/davidbeach/.gitignore_global
editor = subl -n -w
autocrlf = input
[difftool "sourcetree"]
@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 / ssh-macos-hana-express.md
Last active June 3, 2018 01:53
To Connect to Your HANA Express Server MACOS

HANA Express Server

Connect to HANA Express Server (HANA XS/XSA)

Purpose

The SAP instructions don't always have the macos instructions. This is pretty standard on the macos side, but if unable to connect SSH to the HANA server, please read below.

Use Case

You need to pull files from the HANA Express Server

Verify Existing Keys Exist

@davebeach
davebeach / .gitignore
Created March 29, 2018 04:07
Exclude Confidential Files to Be sent to git
#####################
# AWS CLI credential blobs
#####################
.aws/credentials
aws/credentials
homefolder/aws/credentials
#####################
# Private RSA SSH keys
#####################
@davebeach
davebeach / node-train-2.md
Last active March 22, 2018 23:24
SAP Web Apps: Testing Node.js Development Enviornment

SAP Web Apps

Node.js

Testing

To test the installation of the node.js UI5 run the following:

Lint

Checks the code to ensure it meets the requirements for UI5.

grunt lint
@davebeach
davebeach / node-train-1.md
Last active March 17, 2018 19:39
SAP Web Apps: Setting up Development Environment Node.js

SAP Web Apps

Development Environment Set Up

Node.js Environment

If you plan on developing SAP web apps using Angular or React, or other open source kits and tools, then it is best to set up a Node.js development environment.

  1. If working behind proxy, ensure that environment variables are defined to correspond to proxy.
  2. Check the version of node you are running:
node -v
@davebeach
davebeach / seleniumChrome.md
Last active March 17, 2018 16:54
Run Selenium Tests on Chrome Using MacOS (Install Requirements)

Chrome / Chrome Driver / Selenium Standalone Server

Use Case

You need to use Selenium testing suite on MacOS and you get errors related to chrome and missing drivers.

Install via Brew

Install Selenium Stand Alone Server

brew install selenium-server-standalone
@davebeach
davebeach / license.md
Created March 16, 2018 03:55
Open Source License Guide

Repository Licenses

Code Licenses

  1. MIT
  • Code that can be re-used, copied, distributed by others as a dependency with attribution, downstream re-used code can carry any license.
  • This license is "permissive".
  • You can change this license to a more strong license at a future date, as long as the permissive license is retained as a copy.
  • Does not carry patent rights.
  • May need a future patent agreement with the contributors to a project.
@davebeach
davebeach / notUNIX.md
Created February 6, 2018 17:49
Teaching open source to users using Windows Workarounds.