Skip to content

Instantly share code, notes, and snippets.

View saifiahmada's full-sized avatar

Saifi Ahmada saifiahmada

View GitHub Profile
@saifiahmada
saifiahmada / java
Created August 10, 2016 09:26
testing code
public String testingCode() {
return "testing implementasi sistem";
}
@saifiahmada
saifiahmada / pertama.java
Created August 10, 2016 12:11
contoh code snippet untuk blog
package com.saifiahmada.gist
public class Pertama {
public static void cetak() {
System.out.println("Testing coding snippet di blogger saifiahmada.com");
}
}
@saifiahmada
saifiahmada / body-saifi.css
Created August 13, 2016 09:03
no space div
body {
background: #f1f1f1;
margin:0;
padding:0;
}
@saifiahmada
saifiahmada / mariadb_perintah_dasar.sql
Created August 20, 2016 07:17
perintah dasar mariadb
mysql -uroot -p
show databases;
create database belajar_mariadb;
use belajar_mariadb;
show tables;
@saifiahmada
saifiahmada / Bean_Loaded_Spring_Boot.java
Created August 20, 2016 23:42
melihat bean yang diload saat spring boot dijalankan
package com.saifiahmada.spring;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ApplicationContext;
@Configurable
List beans pada Spring Boot adalah :
$autoCreateChannelCandidates
DefaultConfiguringBeanFactoryPostProcessor
IntegrationConfigurationBeanFactoryPostProcessor
_org.springframework.integration.errorLogger
authenticationEventPublisher
authenticationManager
authenticationManagerBuilder
autowiredWebSecurityConfigurersIgnoreParents
bankSoalRepository
@saifiahmada
saifiahmada / snippet_controller.java
Created August 20, 2016 23:52
controller secured
@Controller
@RequestMapping("/kontak")
@Secured("ROLE_ADMIN")
public class KontakController {
@RequestMapping("/save")
public void save(){
}
}
@saifiahmada
saifiahmada / donwload_install_youtube-dl.sh
Created August 24, 2016 12:03
script download dan install youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
@saifiahmada
saifiahmada / youtube-dl_command.sh
Created August 24, 2016 12:09
perintah donwload youtube
youtube-dl "http://alamat_youtube"
@saifiahmada
saifiahmada / download_playlist_video_youtube.sh
Created August 24, 2016 12:29
perintah donwload semua video dalam playlist youtube
youtube-dl -cit "http://alamat.playlist.youtube"