Skip to content

Instantly share code, notes, and snippets.

View nunenuh's full-sized avatar
🏠
Working remotely from home

Lalu Erfandi Maula Yusnu nunenuh

🏠
Working remotely from home
View GitHub Profile
@nunenuh
nunenuh / gist:686d8f8315091043c263
Created April 17, 2015 18:31
HIBERNATE UTIL BARU
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package epsetupserv.orm.utils;
import epsetupserv.config.GeneralConfigurator;
import java.io.File;
import java.io.FileInputStream;
import java.util.Iterator;
@nunenuh
nunenuh / 1.tutorial_nio_tap.txt
Last active August 29, 2015 14:21
GNS3 NIO TAP
# install requirement packet
sudo apt-get install uml-utilities
sudo apt-get install bridge-utils
# copy tap_active.sh ke bin
cp tap_active.sh /bin/tap_active.sh
# ubah file di /etc/rc.local dengan file rc.local yang ada pada gist ini
# jalankan perintah ini pada terminal
@nunenuh
nunenuh / a2dissite
Created July 1, 2015 15:49
Python A2 Enable Site (a2ensite) And Disable Site (a2dissite) for CentOS 7
#!/usr/bin/env python
import sys
import os
arg = sys.argv
arlen = len(arg)
available = '/etc/httpd/sites-available'
enabled = '/etc/httpd/sites-enabled'
@nunenuh
nunenuh / LEDFunction.c
Created July 16, 2015 08:22
Led pake Fungsi
int led1 = 2;
int led2 = 3;
int led3 = 4;
int led4 = 5;
int led5 = 6;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
@nunenuh
nunenuh / SeventSegment.c
Created July 16, 2015 09:22
Sevent Segment
int A = 8;
int B = 9;
int C = 2;
int D = 3;
int E = 4;
int F = 5;
int G = 6;
void zero(){
@nunenuh
nunenuh / std1.html
Created June 26, 2016 20:02
SIALEM
<table cellpadding="1" cellspacing="0" style="width:652px">
<tbody>
<tr>
<td>
<p>1.1.1.&nbsp;Keberadaan SKL</p>
</td>
<td>
<p>Apakah Program Kursus dan Pelatihan menggunakan Standar Kompetensi Lulusan (SKL) yang sesuai dalam pelaksanaan pembelajaran?</p>
<p><input name="vehicle" type="checkbox" value="Bike" />Sesuai dengan visi, misi, dan tujuan lembaga</p>
@nunenuh
nunenuh / std2.html
Created June 26, 2016 20:20
SIALEM
<h3><strong>2.1. RUANG LINGKUP MATERI</strong></h3>
<table cellpadding="1" cellspacing="0" style="width:652px">
<tbody>
<tr>
<td>
<p>2.1.1.</p>
<p>Materi pembelajaran</p>
</td>
@nunenuh
nunenuh / UbuntuPerfectInstall.md
Last active August 26, 2016 13:36
Perfect Install Ubuntu

###Apache Web Server sudo apt-get install -y apache2 apache2-doc apache2-utils apache2-suexec libapache2-mod-php5 libapache2-mod-fcgid libapache2-mod-suphp libruby libapache2-mod-python

###PHP5 sudo apt-get install -y php5-fpm php5 php5-common php5-dev php5-dbg php5-gd php5-mysql php5-imap php5-cli php5-cgi php5-mcrypt mcrypt php5-imagick imagemagick php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json memcached php-pear php-auth

###PHP7.0 sudo apt-get install -y php7.0-fpm php7.0 php7.0-common php7.0-dev php7.0-gd php7.0-mysql php7.0-imap php7.0-cli php7.0-cgi php7.0-mcrypt mcrypt php7.0-curl php7.0-intl php7.0-ps php7.0-pspell php7.0-recode php7.0-sqlite php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-json memcached php-pear php-auth

###MySQL Server

@nunenuh
nunenuh / digitalroot.py
Created November 26, 2017 12:50
Digital Root Implementation in Python
# I forgot where I got this source... this is not mine...
import numpy
def dsum(n):
return sum([int(d) for d in str(n)])
def droot(n):
r = dsum(n)
if r < 10:
return r
@nunenuh
nunenuh / ListUbuntuInstall.txt
Created November 26, 2017 12:54
List Ubuntu Install Apps
#server Install
apt-get install -y apache2 apache2-doc apache2-utils apache2-suexec libapache2-mod-php5 libapache2-mod-fcgid libapache2-mod-suphp libruby libapache2-mod-python
#PHP
sudo apt-get install php5-fpm php5 php5-common php5-dev php5-dbg php5-gd php5-mysql php5-imap php5-cli php5-cgi php5-mcrypt mcrypt php5-imagick imagemagick php5-curl php5-intl php5-memcache php5-memcached php5-ming php5-ps php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json memcached php-pear php-auth
apt-get install -y mysql-server mysql-client mysql-workbench phpmyadmin
apt-get install -y openssh-server openssh-client openssh-known-hosts openssh-sftp-server openssh-blacklist openssh-blacklist-extra openssl openssl-blacklist openssl-blacklist-extra