Skip to content

Instantly share code, notes, and snippets.

View aemrei's full-sized avatar

Emre INEL aemrei

  • Freelance
  • Izmir, Turkey
View GitHub Profile
# sudo vim /etc/netplan/90-static-ip.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses:
- 192.168.0.119/24 # some ip address
@aemrei
aemrei / ShowConsole.js
Last active September 5, 2022 13:28
SAPUI5 debug tool (can be used with TamperMonkey etc or standalone)
// ==UserScript==
// @name ShowConsole
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Display SSSConsole!
// @author aemre
// @match http://*/*
// @match https://*/*
// @grant none
// ==/UserScript==
@aemrei
aemrei / 1-CalendarItem.js
Created July 17, 2022 18:09 — forked from getify/1-CalendarItem.js
an illustration (non-trivial example) of many newer JS class features
class CalendarItem {
static #UNSET = Symbol("unset")
static #isUnset(v) {
return v === this.#UNSET;
}
static {
for (let [idx,msg] of [
"ID is already set.",
"ID is unset.",
"Don't instantiate 'CalendarItem' directly.",
@aemrei
aemrei / simple_test_flow.yml
Last active August 26, 2021 20:24
Quick Testing of RESTful services draft
# at the beginning some small amount of config like:
- version: "0.0.1"
base: https://example.com/api
# Then send requests one after another
- POST: /Person
HEADERS:
CustomHeader: value
BODY:
@aemrei
aemrei / machine.js
Last active June 10, 2020 07:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions