Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar
♥️
Focusing

Cactus erbanku

♥️
Focusing
View GitHub Profile
@npearce
npearce / install-docker.md
Last active May 14, 2024 07:38
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@rhuancarlos
rhuancarlos / sources.list
Created October 5, 2018 03:22
Ubuntu 18.04 Bionic default /etc/apt/sources.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@weibeld
weibeld / telegram-api.pdf
Last active April 27, 2024 03:18
Telegram CLI Commands
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JamoCA
JamoCA / EmulateTyping.ahk
Last active April 22, 2024 17:01
AutoHotKey Script to emulate typing. Use CTRL+SHIFT+V to paste clipboard character-by-character as if typing.
^+v:: ; paste text and emulate typing (CTRL+SHIFT+V)
AutoTrim,On
string = %clipboard%
Gosub,ONLYTYPINGCHARS
StringSplit, charArray, string
Loop %charArray0%
{
this_char := charArray%a_index%
Send %this_char%
Random, typeSlow, 1, 3
@kristopherjohnson
kristopherjohnson / unblock_all.py
Last active May 4, 2023 13:03
Unblock all blocked Twitter accounts
#!/usr/bin/env python3
# Dependency: pip3 install twitter
import twitter
# Go to http://apps.twitter.com/, create an app, and fill in these values:
consumer_key = 'www'
consumer_secret = 'xxx'
access_token = 'yyy'
access_token_secret = 'zzz'
@elfnor
elfnor / md_file_tree.py
Created June 25, 2017 04:52
Generate a file tree table of contents for a directory of markdown files
# -*- coding: utf-8 -*-
"""
Generate a file tree table of contents for a directory of markdown files
run from command line:
$ python md_file_tree.py
will generate a markdown index of all markdown files in the current working
directory and its sub folders and insert it into a file `index.md`.
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 16, 2024 17:23
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@nikhita
nikhita / update-golang.md
Last active May 15, 2024 08:27
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@matthewjberger
matthewjberger / instructions.md
Last active May 14, 2024 21:14
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@milanboers
milanboers / clone.bash
Last active May 2, 2024 20:03
Clone all repositories of a Github user
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone