Skip to content

Instantly share code, notes, and snippets.

View jdssl's full-sized avatar
🍵
Tea temp 99°C

balu jdssl

🍵
Tea temp 99°C
View GitHub Profile
@jdssl
jdssl / smoke-test.sh
Created January 3, 2025 02:25
smoke test
#/bin/bash
echo "Normal"
echo "\033[1mBold\033[22m"
echo "\033[3mItalic\033[23m"
echo "\033[3;1mBold Italic\033[0m"
echo "\033[4mUnderline\033[24m"
echo "== === !== >= <= =>"
echo "契     勒 鈴 "
@jdssl
jdssl / screen-256color.terminfo
Created January 3, 2025 02:23
tic screen-256color.terminfo
screen-256color|screen with 256 colors and italic,
sitm=\E[3m, ritm=\E[23m,
use=screen-256color,
@jdssl
jdssl / docker-compose.yaml
Last active September 28, 2023 22:48
RabbitMQ and PostgreSQL
version: '3.9'
services:
database:
image: postgres:14-alpine
restart: always
container_name: "postgresql"
volumes:
- ./scripts/database/db.sql:/docker-entrypoint-initdb.d/db.sql
- ./database/postgres-data:/var/lib/postgresql/data
ports:
@jdssl
jdssl / keychron_linux.md
Created April 20, 2023 22:19 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux + Bluetooth fixes

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@jdssl
jdssl / README
Created February 20, 2023 12:25 — forked from cstrahan/README
Terminfo config for xterm-256color
# Install:
#
# mkdir ~/.terminfo # optional; can also install to $HOME/share/terminfo
# infocmp screen-256color > screen-256color.terminfo.original # backup
# mkdir dry-run
# tic -o dry-run screen-256color.terminfo
# infocmp -A dry-run screen-256color > screen-256color.terminfo.new
# diff -u screen-256color.terminfo.{original,new}
# tic screen-256color.terminfo # overwrites the old terminfo
#
@jdssl
jdssl / tmux_italic.md
Last active February 20, 2023 18:32 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux
@jdssl
jdssl / init.lua
Created November 25, 2021 09:41
Initial port Vimscript configs to Lua
-----------------------------
-- VARIABLES
-----------------------------
local o = vim.o
local wo = vim.wo
local bo = vim.bo
local g = vim.g -- global variables
local opt = vim.opt
local cmd = vim.cmd -- commands
@jdssl
jdssl / iconToField.swift
Created October 18, 2021 20:23
Add icon to field
import SwiftUI
struct EditTextView: View {
@Binding var text: String
var placeholder: String = ""
var keyboard: UIKeyboardType = .default
var error: String? = nil
var failure: Bool? = nil
@jdssl
jdssl / duplicate_line_xcode.md
Created July 19, 2021 17:39 — forked from emotality/duplicate_line_xcode.md
Xcode - Duplicate Line key binding

Xcode line duplicate

Bind keys to duplicate lines in Xcode

  1. Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/