Skip to content

Instantly share code, notes, and snippets.

View jasoet's full-sized avatar
🎯
Focusing

Deny Prasetyo jasoet

🎯
Focusing
View GitHub Profile
@jasoet
jasoet / gist:3843797
Created October 6, 2012 04:16
Database Connection Singleton
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.secondstack.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
package job
import (
"fmt"
"github.com/go-co-op/gocron"
"reflect"
"strings"
"sync"
"time"
)
@jasoet
jasoet / User.js
Created November 27, 2012 01:10
User.js
Ext.define('Rima.controller.User', {
extend:'Ext.app.Controller',
views:[ 'user.List', 'user.Edit' ],
allowWrite:Rima.util.SecurityHelper.isWriteAllowed("USER_WRITE"),
models:[ 'User', 'Jabatan', 'UnitSatuanKerja'],
stores:[ 'Users', 'Jabatan', 'UnitSatuanKerja'],
refs:[
{
ref:'userList',
selector:'userList'
@jasoet
jasoet / kube_cheat_sheet.md
Created March 9, 2018 03:02
Kubernetes Cheat Sheet
@jasoet
jasoet / gist:870228
Created March 15, 2011 02:48
persistence
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="galleryPersistenceUnit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<validation-mode>NONE</validation-mode>
<properties>
@jasoet
jasoet / gist:8294733
Created January 7, 2014 04:44
Fork Rules

FORKIN' A RAP OH!

FORK A REPO

Go to bitbucket (or github) press fork button, yeah!

e.g. https://bitbucket.org/rockybars/delicious

CLONE MY REPO (FORK)

Clone my own fork of an upstream repo

package status
import (
"experiment/pkg/k8s"
"experiment/pkg/util"
"fmt"
v1 "k8s.io/api/core/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"time"
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"k8s.io/client-go/kubernetes/scheme"
"os"
"os/user"
@jasoet
jasoet / Makefiles.md
Created July 8, 2019 06:48 — forked from evertrol/Makefiles.md
Makefile cheat sheet

Makefile cheat sheet

Mostly geared towards GNU make

I've used ->| to indicate a tab character, as it's clearer to read than

  • Set a target, its dependencies and the commands to execute in order
target: [dependencies]
-&gt;| 
@jasoet
jasoet / kube_overview.md
Created March 9, 2018 03:04
Kubernetes Overview
approvers title
bgrant0607
hw-qiaolei
Overview of kubectl

kubectl is a command line interface for running commands against Kubernetes clusters. This overview covers kubectl syntax, describes the command operations, and provides common examples. For details about each command, including all the supported flags and subcommands, see the kubectl reference documentation. For installation instructions see installing kubectl.

Syntax