Skip to content

Instantly share code, notes, and snippets.

View ezirmusitua's full-sized avatar
🎯
Focusing

ezirmusitua ezirmusitua

🎯
Focusing
View GitHub Profile
@ezirmusitua
ezirmusitua / fix-ssh-agent.md
Last active April 6, 2024 00:54
[Fix SSH Agent] Fix SSH Agent Not Working/Error In Win10 #ssh #windows

Fix Error unable to start ssh-agent service, error: 1058(xxxx)

  1. win + R, Go To services.msc

  2. Find And Check Is OpenSSH Authentication Agent Service Running

@ezirmusitua
ezirmusitua / javascript-resize-debounce.js
Last active September 1, 2023 13:14
[Debounce window resize event] Debounce window resize event #javascript #frontend #perfermance
/* --------------------------------------------
* Detect device orientation
* and trigger changes based on it
--------------------------------------------*/
function updateOrientation() {
// Detect whether device supports orientationchange event, otherwise fall back to the resize event
// Genius solution from http://stackoverflow.com/a/2307936
let supportsOrientationChange = "onorientationchange";
let orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
let newAngle = null;
@ezirmusitua
ezirmusitua / luxon-format.md
Last active July 25, 2023 09:42
[luxon format] symbols of creating luxon time string #javascript #documentation

Tokens

Standalone token Format token Description Example
S millisecond, no padding 54
SSS millisecond, padded to 3 054
u fractional seconds, functionally identical to SSS 054
s second, no padding 4
ss
@ezirmusitua
ezirmusitua / group-same-image.py
Last active November 30, 2022 21:41
[Group similar images] Group similar images using phash algorithm #python #image #algorithm #tools
"""
This script use to group similiar images from source folder
and save to the same output folder, base on the perceptual hash algorithm.
Work on Python3.6 and win10-build-17074
Prerequest: Pillow
Author: jferroal@gmail.com
"""
import hashlib
import mimetypes
@ezirmusitua
ezirmusitua / parse-int-query.ts
Created December 31, 2018 02:45
[Parse integer query params] parse integer query parameters in nestjs #node #nestjs
import {
Controller,
Get,
ParseIntPipe,
Query,
} from '@nestjs/common';
export class GalleryController {
constructor() {
}
@ezirmusitua
ezirmusitua / set-wsl-font.md
Last active May 16, 2022 04:30
[Set WSL font] set WSL font in reg #windows #bash #font
  1. win + R -> regedit
  2. find HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2018.817.0_x64__79rhkp1fndgsc_ubuntu1804.exe
  3. add CodePage, type DWORD, value 0x01b5

Keybase proof

I hereby claim:

  • I am ezirmusitua on github.
  • I am 3zirmusitua3 (https://keybase.io/3zirmusitua3) on keybase.
  • I have a public key ASAe9j3DrU_Td63LiyL4-ENNzCHFoGMlX4_pdXrqljE3bQo

To claim this, I am signing this object:

@ezirmusitua
ezirmusitua / keybindings.json
Last active August 14, 2020 15:19
Visual Studio Code Vim Keybindings
{
"editor.fontSize": 18,
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.columnSelection": false,
"editor.tabSize": 2,
"debug.console.fontSize": 16,
"markdown.preview.fontSize": 16,
"terminal.integrated.fontSize": 16,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@ezirmusitua
ezirmusitua / interested-keywords.json
Last active June 28, 2020 22:27
[Highlighted Keywords] highlighted keywords configurations for monkey script #configuration #json
{
"color": {
"default": {
"bg": "#FFDA5E",
"text": "black"
},
"programming": {
"bg": "skyblue",
"text": "white"
}
@ezirmusitua
ezirmusitua / zsh-tmux.sh
Created February 8, 2020 03:41
[set zsh in tmux] Set zsh as the default shell in tmux #shell
# add option
echo "set-option -g default-shell /bin/zsh" >> ~/.tmux.conf
<C-b>: source-file ~/.tmux.conf