Skip to content

Instantly share code, notes, and snippets.

View Murithijoshua's full-sized avatar
:shipit:
in braces

Joshua Murithi Murithijoshua

:shipit:
in braces
View GitHub Profile
@Murithijoshua
Murithijoshua / OrganizeFiles.sh
Created July 4, 2021 20:51 — forked from mhasan3/OrganizeFiles.sh
Run this shell script to organize files into separate folders
#!/bin/bash
folders='Compressed Documents Images Music Programs Videos'
ext_comp="*.zip *.tar.gz"
ext_doc="*.htm* *.php *.txt *.css *.doc* *.pdf *.PDF *.ppt* *.js"
ext_img="*.jp*g *.JPG *.png *.gif"
ext_music="*.mp3 *.aac *.wma"
ext_progrm="*.deb *.exe *.run"
ext_vid="*.mp4 *.mkv *.flv *.avi *.webm *.wmv"
@Murithijoshua
Murithijoshua / README-Template.md
Created March 2, 2021 07:24 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Murithijoshua
Murithijoshua / readme.md
Created March 2, 2021 07:22 — forked from BlakeCampbells/readme.md
Better Readme Outline

Project Name

Overview

  • What does this project do?
  • Who is it for? What goals does this accomplish?

Setup

  • Requirements for running the project

@Murithijoshua
Murithijoshua / pytz-time-zones.py
Created July 5, 2020 21:58 — forked from heyalexej/pytz-time-zones.py
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@Murithijoshua
Murithijoshua / postgres-cheatsheet.md
Created June 21, 2019 11:36 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)