Skip to content

Instantly share code, notes, and snippets.

View deneuv34's full-sized avatar
:octocat:
Hybrid sekarang~

Rangga Adhitya deneuv34

:octocat:
Hybrid sekarang~
View GitHub Profile
@deneuv34
deneuv34 / Fix slow download Windows 11 & wsl.md
Created November 10, 2022 10:13
Fix slow download Windows 11 & wsl

How to Fix

Method 1. Modify Internet Bandwidth Settings.

  1. Press Win + R key > and in Run dialog box > type gpedit.msc > OK.
  2. Give permissions now a pop-up window opens with the title of Group Policy > then click on Computer Configuration.
  3. Then go to Administrative Templates > Network > Qos Packet Scheduler > Limit reservable bandwidth.
  4. Click on Enable > change the Value to 100.
  5. Click Apply & click OK.
  6. Restart your computer, and when it boots up, check to see whether or not the problem has been resolved.

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt update

sudo apt install openjdk-8-jdk-headless
@deneuv34
deneuv34 / terbilang.md
Last active April 28, 2021 03:36
Terbilang function

Functions

=IF(A1=0;"nol";IF(A1<0;"minus ";"")& SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE( IF(--MID(TEXT(ABS(A1);"000000000000000");1;3)=0;"";MID(TEXT(ABS(A1);"000000000000000");1;1)&" ratus "&MID(TEXT(ABS(A1);"000000000000000");2;1)&" puluh "&MID(TEXT(ABS(A1);"000000000000000");3;1)&" trilyun ")& IF(--MID(TEXT(ABS(A1);"000000000000000");4;3)=0;"";MID(TEXT(ABS(A1);"000000000000000");4;1)&" ratus "&MID(TEXT(ABS(A1);"000000000000000");5;1)&" puluh "&MID(TEXT(ABS(A1);"000000000000000");6;1)&" milyar ")& IF(--MID(TEXT(ABS(A1);"000000000000000");7;3)=0;"";MID(TEXT(ABS(A1);"000000000000000");7;1)&" ratus "&MID(TEXT(ABS(A1);"000000000000000");8;1)&" puluh "&MID(TEXT(ABS(A1);"000000000000000");9;1)&" juta ")& IF(--MID(TEXT(ABS(A1);"000000000000000");10;3)=0;"";IF(--MID(TEXT
@deneuv34
deneuv34 / command.md
Last active February 16, 2023 09:30
node_modules cleaner

This command is find and remove all node_modules on ./ path

$ find . -name node_modules -type d -print0 | xargs -0 rm -rf --
@deneuv34
deneuv34 / backe_restore.md
Created January 28, 2021 08:59
Backup and Restore PostgreSQL

Backup

This command mean is backup data with plain .sql file to defined path output

$ pg_dump -x -h localhost -p 5432 -U bioskoponline -W -F p db_name > /path/to/file.sql

Restore

To restore the generated plain sql file, you can only restore by psql command:

$ psql -h localhost -U postgres -p 54321 db_name &lt; /path/to/file.sql
@deneuv34
deneuv34 / response.go
Created October 20, 2020 06:32
Base Response Gin Golang
package response
import (
"github.com/gin-gonic/gin"
"gorm.io/gorm"
"net/http"
"reflect"
errConst "go_grocery/src/helper/error"
)
@deneuv34
deneuv34 / .travis.yml
Created March 11, 2019 14:36
Simple Travis CI configuration on Javascript project
language: node_js
os:
- linux
node_js:
- "10"
install:
- npm ci
script:
- npm run test
cache:
@deneuv34
deneuv34 / CountryCodes.json
Created December 10, 2018 05:12 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@deneuv34
deneuv34 / Card Class and Method.js
Last active April 25, 2017 12:49
Excercise javascript cand and Pretify number
// var num = Math.round(Math.random() * 12) + 1;
// var card = Math.round(Math.random() * 3) + 1;
class deckOfCards {
constructor(cards, nums) {
this.nums = nums;
this.card = cards;
this.deck = (t, n) => {
let arr = [];
for(let i = 0; i < type.length; i++) {
for(let j = 0; j < number.length; j++) {