Skip to content

Instantly share code, notes, and snippets.

View VicoErv's full-sized avatar
:dependabot:

Vico Erv VicoErv

:dependabot:
View GitHub Profile
@VicoErv
VicoErv / 13.1
Created December 20, 2019 11:14
#include <stdio.h>
#include <conio.h>
long int faktorial(unsigned int n)
{
if (n == 0 || n == 1) {
return 1;
} else {
return n * faktorial(n - 1);
}
.class public Lcom/tencent/wemusic/ui/profile/UserBaseInfo;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/os/Parcelable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
@VicoErv
VicoErv / i3-brightness.md
Created May 22, 2020 11:39
How to make brightness work with i3

Install brightnessctl https://www.archlinux.org/packages/community/x86_64/brightnessctl/

Add this script to ~/.config/i3/config

bindsym XF86MonBrightnessUp exec brightnessctl s +10% > /dev/null && notify-send Brightness $(($(brightnessctl get) * 10 / 937 * 10))% -h string:x-canonical-private-synchronous:brightness_percentage --app-name System
bindsym XF86MonBrightnessDown exec brightnessctl s 10%- > /dev/null && notify-send Brightness $(($(brightnessctl get) * 10 / 937 * 10))% -h string:x-canonical-private-synchronous:brightness_percentage --app-name System

explanation:

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package perpustakaan.ui;
import java.awt.event.WindowEvent;
import java.sql.Connection;
import java.sql.PreparedStatement;
@VicoErv
VicoErv / gist:8181e5c529dee68aa36a953ec33fa690
Created April 21, 2022 20:54
Hide #StandWithUkraine hashtag from composer because don't force your personal opinion to PHP developers all over the world.
add this to your $HOME/.bashrc
composer() {
composer $@ | grep "#StandWithUkraine"
}

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example