Skip to content

Instantly share code, notes, and snippets.

View tshipenchko's full-sized avatar
🎯
Focusing

Łukasz Tshipenchko tshipenchko

🎯
Focusing
View GitHub Profile
@jehiah
jehiah / simple_args_parsing.sh
Created March 4, 2011 16:56
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@heyalexej
heyalexej / pytz-time-zones.py
Created November 16, 2016 09:14
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@kellpossible
kellpossible / feh.desktop
Created April 29, 2017 15:02
A desktop file/run configuration that sets feh up to open such that you can scroll through all the other images in the same directory
[Desktop Entry]
Name=Feh
Name[en_US]=feh
GenericName=Image viewer
GenericName[en_US]=Image viewer
Comment=Fast Imlib2-based Image Viewer
Exec=bash -c "feh -. --start-at ./$(realpath --relative-to=$(dirname %f) %f)"
Terminal=false
Type=Application
Icon=feh
@Kirens
Kirens / procedure.md
Created January 13, 2018 14:27
Deploying a NixOS server on DigitalOcean

Prerequisites

We'll use NixOps to deploy, so we need to install it

nix-env -i nixops

And to deploy on DigitalOcean we need to have an account and create an API access token for it.

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 20, 2024 08:31
set -e, -u, -o, -x pipefail explanation
@metajiji
metajiji / install-megacli.md
Last active July 2, 2024 06:29 — forked from fxkraus/debian-install-megacli.md
Install LSI MegaCli

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

or

curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active July 9, 2024 11:26
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@ragul28
ragul28 / docker-install.md
Created January 11, 2020 10:01
Install docker in Debian/Ubuntu with auto completion

Easy Installation docker

  • Init installtion & add user to docker group (not recommanded for prod usage)
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
  • Sanity check
@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active July 3, 2024 16:04
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@sampointer
sampointer / gist:b506369b926ad395123aa7f18275de92
Last active July 2, 2024 01:30
NixOS Packages From Unstable alongside Stable (Google Chrome)

If you'd like to keep up-to-date with Chrome from unstable but otherwise want to run a stable NixOS release you can do the following:

  • Create a file /etc/nixos/unstable.nix:
{ config, pkgs, ...}:
let
  baseconfig = { allowUnfree = true; };
  unstable = import <nixos-unstable> { config = baseconfig; };
in {