Skip to content

Instantly share code, notes, and snippets.

View novalagung's full-sized avatar
🏠

Noval Agung Prayogo novalagung

🏠
View GitHub Profile

Keybase proof

I hereby claim:

  • I am novalagung on github.
  • I am novalagung (https://keybase.io/novalagung) on keybase.
  • I have a public key whose fingerprint is 6B3B A7C9 6566 2EF0 FFBF 566D 90F4 405F F0FE 1DD5

To claim this, I am signing this object:

@novalagung
novalagung / AllGattCharacteristics.java
Created May 21, 2021 14:34 — forked from sam016/AllGattCharacteristics.java
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
# install development dependencies
yum groupinstall -y 'Development Tools'
yum install -y curl git
# install go toolchain
export GOROOT_BOOTSTRAP=/usr/local/go1.4
curl -O https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz
tar -zxf go1.4.3.linux-amd64.tar.gz && mv go ${GOROOT_BOOTSTRAP}
# obtain go source code
@novalagung
novalagung / world_controller.go
Last active May 13, 2020 04:23
knotv1-http-test-100-coverage
package controllers
import (
"github.com/eaciit/knot/knot.v1"
"github.com/eaciit/toolkit"
)
type WorldController struct {
}
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app-deployment5
spec:
replicas: 3
selector:
matchLabels:
name: my-app5
template:
CREATE DATABASE IF NOT EXISTS hello_world;
USE hello_world;
CREATE TABLE IF NOT EXISTS users (
id int NOT NULL AUTO_INCREMENT,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(255),
birth DATETIME,
PRIMARY KEY (id)
);
@novalagung
novalagung / goth
Last active November 23, 2023 07:15 — forked from ammario/goth
golang test coverage html
#!/bin/bash
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out

transpile es6 into es5 using babel cli.

first install required packages globally.

npm install -g @babel/core @babel/node @babel/preset-env @babel/cli

then use command below to perform transpilation.

@novalagung
novalagung / pr.md
Created February 19, 2020 02:33 — forked from karlhorky/pr.md
Fetch all GitHub pull requests to local tracking branches
# list stuff with it's security context
ls -lrtZ
# then adjust the security context using chcon
sudo chcon -v --user=system_u ride-dev
sudo chcon -R -v --type=httpd_sys_content_t ride-dev/*
semanage port -l | grep http
semanage port -a -t http_port_t -p tcp 8085