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 June 6, 2024 19:31
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: