Skip to content

Instantly share code, notes, and snippets.

View bahmanshams's full-sized avatar
😂
Focusing

Bahman Shams bahmanshams

😂
Focusing
View GitHub Profile
@willianfalbo
willianfalbo / README.md
Last active April 19, 2024 01:13
Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+)

Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+, MacOS)

Introduction

After following these steps, your terminal will look like:

1. Install Zsh

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

@anpleenko
anpleenko / install_wimbox.sh
Created June 10, 2020 09:14
Winbox on Ubuntu 20.04 Desktop
sudo apt-get install wine -y
wget http://www.mikrotik.com/download/winbox.exe
sudo mv winbox.exe /bin
wine /bin/winbox.exe
# alias winbox='wine /bin/winbox.exe'
@behroozam
behroozam / docker-compose.yml
Created July 14, 2018 10:24
rancher elasticsearch 6.3.1
version: '2'
volumes:
esdata:
external: true
driver: local
edatanode:
external: true
driver: local
services:
elasticsearch:
@amrza
amrza / aria.sh
Created April 21, 2018 15:50
Download List of files with aria2
#!/bin/sh
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none
date
# Now create this file in the same directory and paste all urls in it: urls.txt

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@Iman
Iman / clean.sh
Last active April 15, 2024 16:50
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs