Skip to content

Instantly share code, notes, and snippets.

View ikbelkirasan's full-sized avatar

Ikbel ikbelkirasan

View GitHub Profile
@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 June 16, 2023 18:04
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 November 16, 2024 15:45
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)
@ikbelkirasan
ikbelkirasan / writing-a-state-of-the-art-section.md
Created November 1, 2018 19:28
Writing the "Related Work" Section of a Paper/thesis

Writing the "Related Work" Section of a Paper/thesis

By: Chamin Morikawa (https://www.linkedin.com/pulse/writing-related-work-section-paperthesis-chamin-morikawa/)

For most students, writing about what they did on their own is not hard. But writing about others' work - which is what you have to do in the "State of the Art" or "Related Work" section - is quite hard for them. Here are a few guidelines to make this task a bit easier.

The Basics

Let's lay down our assumptions before continuing. I assume that you want to write a "Related Work" section for a research paper or a thesis that describes your approach to solve some problem. Let's also assume that there are other publications that attempt to solve the same problem, but the solutions in them are not perfect. Finally, let's assume that your approach has some difference when compared to those by others, and some improvement (faster, more accurate, easier to afford, etc.).