OOZOU
與我們聯繫
Back to TILToday I Learned

shell

30 notes on shell from the OOZOU team.

all topicsshell 30ruby on rails 22ruby 12macos 10vim 7figma 4cli 3javascript 3heroku 1elixir 1
shellDecember 8, 2020

Run incognito/private commands for Bash and Zsh

Simply put a space before the command and it won't be saved to ~/.bash\_history. E.g. qrencode -o out.png "Some secret text"

shellOctober 22, 2020

Upgrade postgres database with homebrew

To upgrade postgres you can run

shellOctober 13, 2020

Amazon AWS S3 CLI copy with set perms

Open term (or equivalent) and paste the following:

shellOctober 13, 2020

Angry Docker Purge

If you receive No Space left error on Docker this the brute force solution:

shellOctober 13, 2020

Back up a file with same name + prefix

NOTE: Actually you can use !#:1 in every command 'cause that's last argument passed to a command.

shellOctober 13, 2020

Bash aliases and magic

I have a seperate file in my user folder named ~/.aliases. I use this to store all of my bash aliases. I use aliases a lot and add new ones regularly so I created a bash function to add new aliases…

shellOctober 13, 2020

Check for IKEA item availability

If you're waiting for an IKEA item to restock, here's a practical solution to stay updated automatically. This guide explains how to use a shell script to check IKEA's stock availability and get…

shellOctober 13, 2020

Check if command exists with shell script

Check if command exists with shell script

shellOctober 13, 2020

Create your own git commands (aliases)

Ever wanted to shorten a git command? You can go with shell alilas for sure but you have to always include context so that you don't forget what each ailas stands for but you can define your own…

shellOctober 13, 2020

Delete already-merged branchs in Git

You can safelist more branches in egrep -v 'master|develop|foo|bar'

shellOctober 13, 2020

Delete merged git branches

Handy git command for deleting all local git branches that already merged git branch --merged | egrep -v "(^\\|master|dev)" | xargs git branch -d*

shellOctober 13, 2020

Diff a local file with remote version in Git

Easily run the below command and get a diff version from the remote

shellOctober 13, 2020

Find a branch based on a commit

c198bb715 Make default expired description logic pretty `

shellOctober 13, 2020

Force push previous commit to repo

If you push some code and want to force push a previous commit you can do so with shell git push origin +commit\sha^:branch\name

shellOctober 13, 2020

Get current git branch name

Get current git branch name

shellOctober 13, 2020

Go through a file Git history (GUI)

Go through a file Git history (GUI)

shellOctober 13, 2020

Kill rails that got stuck

I'd like to kill rails running w/specific port. (My laptop running several rails servers. )

shellOctober 13, 2020

Kill unresponsive SSH session

Occasionally an SSH session may become unresponsive. If I put my laptop to sleep this happens fairly often. Rather than killing the tab you can use SSH Escape Characters to kill the session

shellOctober 13, 2020

List directory structure except one or more dirs

Ever wanted to display the structure of the current directory except or two directories?

shellOctober 13, 2020

make a pr from command line using hub

install hub first with brew: brew install hub then use a simple command, like at the example below: hub pull-request -m "best pr ever" -b oozou:develop -h feature/awesome-improvements

shellOctober 13, 2020

Remove unwanted commit from your branch

Remove unwanted commit from your branch

shellOctober 13, 2020

Restore a deleted file in Git

Restore a deleted file in Git

shellOctober 13, 2020

Run same command on different input/inputs

If you have to run the same command repetitively over different input/inputs.

shellOctober 13, 2020

See deleted files in previous commits [git]

See deleted files in previous commits [git]

shellOctober 13, 2020

Send messages to Slack using cURL

Slack allows you to send messages via the Webhooks service

shellOctober 13, 2020

Shallow clone a old repo

If you don't need the full git history for a repo you will be working on you can supply a clone depth to only clone x revisions of the repo.

shellOctober 13, 2020

Use `host` to get more information about domains

You might be using dig to find out A/CNAME/MX etc records of a domain from DNS servers. But if you just want to get a quick overview, use host:

shellOctober 13, 2020

Using Git's aliases feature

Git allows you to create aliases internally through the config. Your global config should be located here ~/.gitconfig

shellOctober 13, 2020

Watch CI status on Github

When you have Github's hub installed, you can get the ci-status of your current branch like this:

shellOctober 13, 2020

Zsh function to list file tree

When navigating through directories on the command line, it’s often helpful to see the structure of directories and subdirectories in a "tree" format. While there are plenty of tools out there, such…

有專案構想嗎?

我們很樂意聆聽您正在打造的產品。

開始對話hello@oozou.com
OOZOU Logo

曼谷 · 新加坡 · 香港

X
Facebook
Instagram
LinkedIn

服務

  • Web 開發
  • AI 與生成式 AI 解決方案
  • 行動應用程式開發
  • 資料分析與工程
  • UI/UX 設計與產品設計
  • 數位轉型

公司

  • 關於我們
  • 職涯
  • 部落格
  • 白皮書
  • 案例研究
  • Today I Learned
  • 聯繫我們

更多

  • 產業
  • 索取報價
  • 合作夥伴網絡
© 2026 OOZOU. 版權所有。
隱私政策行為準則反賄賂反貪腐政策