Skip to content

Instantly share code, notes, and snippets.

View ikbelkirasan's full-sized avatar

Ikbel ikbelkirasan

View GitHub Profile
@slavafomin
slavafomin / 00-typescript-esm.md
Last active October 23, 2025 18:19
Using TypeScript with native ESM

Using TypeScript Node.js with native ESM

This reference guide shows how to configure a TypeScript Node.js project to work and compile to to native ESM.

Rationale

CommonJS module system was introduced by the Node.js developers due to the lack of the notion of "modules" in the original JavaScript (ECMAScript) language specification at that time. However, nowadays, ECMAScript has a standard module system called ESM — ECMAScript Modules, which is a part of the accepted standard. This way CommonJS could be considered vendor-specific and obsolete/legacy. Hopefully, TypeScript ecosystem now supports the "new" standard.

So the key benefits are:

@jaydodge1975
jaydodge1975 / scrollbar.css
Created June 23, 2021 23:13
Color scrollbar CSS
::-webkit-scrollbar {
width: 1rem;
}
::-webkit-scrollbar-corner,
::-webkit-scrollbar-track {
background: #333333;
}
::-webkit-scrollbar-thumb {
background: #575757;
background-clip: padding-box;
@ikbelkirasan
ikbelkirasan / mongo-docker-compose.yml
Created October 18, 2019 11:40
docker-compose presets
version: '3.0'
services:
mongo:
image: mongo
restart: unless-stopped
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
@ikbelkirasan
ikbelkirasan / readme.md
Created February 21, 2019 22:11
Install latest qtile

Install latest qtile

Tested on Ubuntu 18.04

Setup

sudo apt update && sudo apt install -y git python3 python3-pip python3-dbus libcairo2 libpangocairo-1.0-0 libxcb-render0-dev libffi-dev
pip3 install xcffib cairocffi
cd /tmp
@ikbelkirasan
ikbelkirasan / change_window_opacity.sh
Last active October 19, 2025 21:46
Change window opacity in Linux using keyboard shortcuts
#!/bin/bash
function get_active_window() {
printf "0x%08x" $(xdotool getactivewindow)
}
function get_current_opacity() {
window="$1"
opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}')
if [ -z $opacity ]; then
@ikbelkirasan
ikbelkirasan / create_systemd_service.md
Created February 13, 2019 14:23
Create a systemd service

Create a systemd service

  1. Copy the program you want to run to /usr/bin folder and make it executable.
$ sudo cp my_service_program.sh /usr/bin
$ sudo chmod +x /usr/bin/my_service_program.sh
  1. Create the unit file
@ikbelkirasan
ikbelkirasan / gemfury_setup.md
Last active January 14, 2019 21:39
Setup gemfury-cli

Setup gemfury-cli

  1. Run this command:
$ sudo nano /etc/apt/sources.list.d/fury-cli.list
  1. Add this line:
@ikbelkirasan
ikbelkirasan / create_gksudo.sh
Created January 13, 2019 16:32
Create gksudo in Ubuntu 18.04
#!/bin/bash
mkdir -p ~/.local/bin
echo -e '#!/bin/sh\n/usr/bin/pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY HOME=$HOME "$@"' > ~/.local/bin/gksudo
chmod u+x ~/.local/bin/gksudo
@ikbelkirasan
ikbelkirasan / host_apt_repo_on_github.md
Last active October 13, 2025 07:22
Host an APT repository on Github

Host an APT repository on Github

This guide will help you host an APT repository on Github.

Prerequisites

You need to install the following packages.

  • reprepro
@ikbelkirasan
ikbelkirasan / readme.md
Created November 2, 2018 11:18
Install Canon LBP6030b drivers on Ubuntu 18.04 (64bit)