Skip to content

Instantly share code, notes, and snippets.

View uzuki-P's full-sized avatar
💭
UwU

Rahmat Fajar uzuki-P

💭
UwU
  • Medan, Sumatera Utara
  • 19:54 (UTC +07:00)
View GitHub Profile
@uzuki-P
uzuki-P / remap_thinkpad_key.reg
Created May 18, 2024 12:17
Remap useless thinkpad shortcut fn + f9-11 to media (prev, play/pause, next). Copied from https://github.com/csavalas/thinkpadhotkeyfix/blob/8e8945b43b674be304bc3f32892fbe8f3fd17d38/update.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\ShortcutKey\AppLaunch\Ex_96]
"AppType"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\ShortcutKey\AppLaunch\Ex_96\Desktop]
"File"="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
"Parameters"="-WindowStyle hidden (New-Object -ComObject WScript.Shell).SendKeys([char]177)"
[HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\ShortcutKey\AppLaunch\Ex_97]
@uzuki-P
uzuki-P / index.js
Created January 15, 2021 13:34
NodeJs - Socket connection
var fs = require('fs');
var net = require('net');
var server = net.createServer(function(c) { //'connection' listener
console.log('server connected');
c.on('end', function() {
console.log('server disconnected');
});
c.write('hello\r\n');
c.pipe(c);
});
@uzuki-P
uzuki-P / docker-compose.yml
Last active April 7, 2024 07:56
Docker compose for local postgres, mariadb, portainer
services:
mariadb:
image: mariadb:11.3.2
container_name: mariadb-11
restart: "no" # options: no, always, on-failure, unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=rahasia
- MYSQL_ROOT_HOST=%
volumes:
- ./data-mysql:/var/lib/mysql:Z # mysql data mounting point
@uzuki-P
uzuki-P / gist:eda16fee3b0f766c4629f17a977a07a7
Created July 8, 2020 11:26
Install all php extension for laravel
sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip
@uzuki-P
uzuki-P / .htaccess
Created February 14, 2019 09:18
CORS sub domain
<IfModule mod_headers.c>
SetEnvIf Origin "^(.*\.lunata\.co\.id)$" ORIGIN_SUB_DOMAIN=$1
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
Header set Access-Control-Allow-Methods: "*"
Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
</IfModule>

Download Ubuntu Server


Packages Config:

sudo apt install ranger atool feh

sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:certbot/certbotphp
@uzuki-P
uzuki-P / gist:37d1c1424e906e67dc281a903e48b873
Last active June 9, 2020 14:13
Vomnibar dark theme (chrome extension)
div > .vimiumHintMarker {
/* linkhint boxes */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785),
color-stop(100%,#FFC542));
border: 1px solid #E3BE23;
}
div > .vimiumHintMarker span {
/* linkhint text */
color: black;

Material Color .xml

gradle.build (project level):

buildscript {
    ext.kotlin_version = '1.2.41'
    repositories {
        google()
@uzuki-P
uzuki-P / Export-Chocolatey.ps1
Created July 17, 2017 01:49 — forked from alimbada/Export-Chocolatey.ps1
Export installed Chocolatey packages as chocolatey script
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" }