Skip to content

Instantly share code, notes, and snippets.

View newtonkiragu's full-sized avatar
๐Ÿ’ญ
Lifelong teacher, avid student

Newton Karanu newtonkiragu

๐Ÿ’ญ
Lifelong teacher, avid student
View GitHub Profile
@newtonkiragu
newtonkiragu / wsl_startup.sh
Created March 5, 2024 21:21
Script that runs every time a new wsl session starts. It should be added to .bashrc or .zshrc. It is used to only run the services you would like to run instead of activating systemctl
#!/bin/bash
# Function to run activation commands
activate_commands() {
# Prompt user for sudo password
echo "Please enter your sudo password:"
sudo -v || { echo "Incorrect sudo password. Exiting."; exit 1; }
# Activation commands for Postgres
@newtonkiragu
newtonkiragu / .vimrc
Last active March 5, 2024 21:49
Custom vim setup. Clone in root directory. This is a revised version that does not need any plugin installed (vundle or otherwise). Serves my needs.
" Automatic reloading of .vimrc
autocmd! bufwritepost .vimrc source %
" Set shift width to 4 spaces.
set shiftwidth=4
set shiftround
" Set tab width to 4 columns.
set tabstop=4
set softtabstop=4
@newtonkiragu
newtonkiragu / gist:9e4ce8d2f8a0d399b1511337e4f71715
Created February 25, 2020 12:43 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@newtonkiragu
newtonkiragu / .bashrc
Last active November 7, 2018 13:34
back up of bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@newtonkiragu
newtonkiragu / DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Last active December 28, 2024 15:00
Deploying Django Applications to heoroku

How to Deploy Django Applications on Heroku

Install heroku CLI

Sign up to Heroku.

Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps

After installing the Heroku Toolbelt, open a terminal and login to your account: