Skip to content

Instantly share code, notes, and snippets.

View exesse's full-sized avatar
๐Ÿ 
Working from home

Vladislav Kulbatski exesse

๐Ÿ 
Working from home
View GitHub Profile
# pretty sudo prompt
read -r -d '' SUDOPROMPT << EOM
๐ŸŒบ๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒธ๐ŸŒธ๐ŸŒธ๐ŸŒธ๐ŸŒท๐ŸŒผ๐ŸŒท๐ŸŒณ๐ŸŒบ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒป๐ŸŒผ๐ŸŒผ๐ŸŒณ๐ŸŒณ๐ŸŒผ๐ŸŒบ๐ŸŒป๐ŸŒท๐Ÿ›๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒท๐ŸŒป๐ŸŒธ
๐ŸŒธ๐Ÿฆ‰๐ŸŒป๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒธ๐ŸŒท๐ŸŒธ๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒป๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒผ๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒผ๐ŸŒณ๐ŸŒบ๐ŸŒณ๐ŸŒท๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒธ
๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒบ๐ŸŒบ๐ŸŒป๐ŸŒบ๐ŸŒธ๐ŸŒป๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒท๐ŸŒณ๐ŸŒป๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒป๐ŸŒณ๐ŸŒณ๐ŸŒณ๐ŸŒณ๐ŸŒผ๐ŸŒณ๐ŸŒณ๐ŸŒบ๐ŸŒท๐ŸŒณ๐ŸŒบ๐ŸŒณ๐ŸŒบ
๐Ÿฆ‰๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒธ๐ŸŒธ๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒท๐ŸŒธ๐ŸŒณ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒบ๐ŸŒท๐ŸŒป๐ŸŒท๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒท๐ŸŒท๐Ÿฐ๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒผ๐ŸŒท๐ŸŒผ๐ŸŒณ๐ŸŒท๐Ÿน๐ŸŒผ๐ŸŒบ
๐ŸŒท๐ŸŒณ๐ŸŒป๐ŸŒธ๐ŸŒธ๐ŸŒผ๐Ÿฐ๐ŸŒท๐ŸŒบ๐ŸŒท๐ŸŒบ๐ŸŒป๐ŸŒท๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒป๐ŸŒท๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒธ๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒธ๐ŸŒป๐ŸŒณ๐ŸŒณ๐ŸŒป๐Ÿฆ๐ŸŒป๐ŸŒผ๐ŸŒผ๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒณ๐Ÿฐ
๐ŸŒผ๐Ÿฆ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒธ๐ŸŒณ๐ŸŒท๐ŸŒบ๐ŸŒผ๐ŸŒณ๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒผ๐ŸŒป๐Ÿ›๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒบ๐ŸŒผ๐ŸŒบ๐ŸŒธ๐ŸŒบ๐Ÿฆ”๐ŸŒท๐ŸŒธ๐ŸŒท๐ŸŒป๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒท๐ŸŒ๐ŸŒธ๐ŸŒท๐ŸŒผ๐ŸŒธ๐Ÿน
๐ŸŒธ๐ŸŒณ๐ŸŒป๐ŸŒผ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒบ๐ŸŒท๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒท๐ŸŒป๐ŸŒบ๐ŸŒผ๐ŸŒผ๐ŸŒณ๐ŸŒธ๐ŸŒป๐ŸŒป๐ŸŒธ๐ŸŒผ๐ŸŒผ๐ŸŒธ๐ŸŒณ๐ŸŒบ๐ŸŒป๐ŸŒป๐ŸŒณ๐ŸŒบ๐ŸŒท๐Ÿฐ๐ŸŒป๐ŸŒผ๐Ÿน๐ŸŒท๐ŸŒท๐ŸŒณ
๐ŸŒผ๐ŸŒท๐ŸŒป๐ŸŒธ๐ŸŒผ๐ŸŒณ๐ŸŒป๐ŸŒป๐ŸŒณ๐ŸŒท๐ŸŒผ๐ŸŒป๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒบ๐ŸŒณ๐ŸŒป๐ŸŒผ๐ŸŒท๐ŸŒธ๐ŸŒธ๐ŸŒป๐ŸŒบ๐ŸŒป๐ŸŒณ๐ŸŒธ๐ŸŒท๐ŸŒบ๐ŸŒบ๐ŸŒผ๐ŸŒธ๐ŸŒบ๐ŸŒป๐ŸŒป๐ŸŒท๐ŸŒธ๐ŸŒป๐ŸŒท
@jdh747
jdh747 / Google IO 2012.md
Last active March 1, 2025 01:05
Go Concurrency Patterns: Google IO 2012

Concurrency Patterns in Go

Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.

1. Generator: function that returns a channel

The code is as follows:

c := boring("boring!")  // function returning a channel

for i := 0; i &lt; 5; i++ {
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active June 2, 2025 00:52
tmux Cheat Sheet
@pylover
pylover / a2dp.py
Last active April 17, 2025 03:30
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active June 12, 2025 10:23
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@chirag64
chirag64 / xrandr.sh
Last active March 3, 2025 23:06 — forked from debloper/xrandr.sh
Added license on user request
#!/bin/bash
# Copyright ยฉ 2021 Chirag Bhatia
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the โ€œSoftwareโ€), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED โ€œAS ISโ€, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000