Skip to content

Instantly share code, notes, and snippets.

View detik19's full-sized avatar

Tedy Tri Saputro detik19

View GitHub Profile
@detik19
detik19 / wsl.sh
Created December 11, 2021 11:15
Script Windows Subsystem For Linux
# 1. menginstal oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 2. Furamono Fonts
https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/FiraMono/Regular/complete/Fura%20Mono%20Regular%20Nerd%20Font%20Complete.otf?raw=true
# 3. Install theme powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Cara termudah untuk menginstal OpenJDK pada MacOS adalah melalui Homebrew, sebelumnya pastikan komputer macos anda telah terinstal Homebrew, dengan mengetikkan perintah berikut pada terminal anda
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Setelah homebrew terinstall, kini anda dapat dengan mudah menginstal OpenJDK 11 melalui perintah berikut pada terminal anda
brew install openjdk@11
https://github.com/Subrutin-Academy/book-catalog-v1 (Sesi Pelajaran 3 s/d 6)
https://github.com/Subrutin-Academy/book-catalog-v2-2024 (sesi pelajaran 7 s/d 12) (Spring Boot 3)
check locale support on os :
locale
install prequisites software before install ROS2
sudo apt update && sudo apt install curl gnupg2 lsb-release
add repository to ubuntu
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
@detik19
detik19 / welcome.ts
Created May 30, 2020 14:42
hello deno
console.log("Welcome to Deno 🦕");
#include <WiFi.h>
#include <esp_wifi.h>
// Set your new MAC Address
uint8_t newMACAddress[] = {0x32, 0xAE, 0xA4, 0x07, 0x0D, 0x66};
void setup(){
Serial.begin(115200);
Serial.println();
CREATE OR REPLACE VIEW public.extended_merchant_access_view
AS SELECT merchant1.assigned_id,
merchant1.assigned_secure_id,
merchant1.asigned_name,
merchant1.privilege_id,
merchant1.privilege_secure_id,
merchant1.privilege_name
FROM ( SELECT m.id AS assigned_id,
m.secure_id AS assigned_secure_id,
m.name AS asigned_name,
@detik19
detik19 / main.c
Last active June 15, 2019 07:04
Blink ESP32
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#define BLINK_GPIO 2
@detik19
detik19 / esp32_bluetooth.ino
Created June 3, 2019 17:19
esp32 bluetooth serial
#include "BluetoothSerial.h"
BluetoothSerial ESP_BT; //Object for Bluetooth
int incoming;
int LED_BUILTIN = 2;
void setup() {
Serial.begin(9600); //Start Serial monitor in 9600
ESP_BT.begin("ESP32_LED_Control"); //Name of your Bluetooth Signal
@detik19
detik19 / main.py
Created May 31, 2019 17:47
GPIO Pin MicroPython
from machine import Pin
from time import sleep
led = Pin(2, Pin.OUT)
button = Pin(4, Pin.IN)
while True:
led.value(button.value())
sleep(0.1)