Skip to content

Instantly share code, notes, and snippets.

Avatar

David Beach davebeach

View GitHub Profile
View .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 Jun 6, 2018 — forked from paschmann/xs2xscli.txt
SAP HANA XS Adanced (XS2) CLI Commands
View xs2xscli.txt
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 Jun 4, 2018 — forked from mhawksey/gist:1442370
google sheets script to pull json file into google sheets.
View googlesheetsjson.js
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 Jun 3, 2018
To Connect to Your HANA Express Server MACOS
View ssh-macos-hana-express.md

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 Mar 29, 2018
Exclude Confidential Files to Be sent to git
View .gitignore
#####################
# AWS CLI credential blobs
#####################
.aws/credentials
aws/credentials
homefolder/aws/credentials
#####################
# Private RSA SSH keys
#####################
@davebeach
davebeach / node-train-2.md
Last active Mar 22, 2018
SAP Web Apps: Testing Node.js Development Enviornment
View node-train-2.md

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 Mar 17, 2018
SAP Web Apps: Setting up Development Environment Node.js
View node-train-1.md

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 Mar 17, 2018
Run Selenium Tests on Chrome Using MacOS (Install Requirements)
View seleniumChrome.md

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 Mar 16, 2018
Open Source License Guide
View license.md

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 Feb 6, 2018
Teaching open source to users using Windows Workarounds.