Skip to content

Instantly share code, notes, and snippets.

@ianmustafa
ianmustafa / index.php
Last active April 5, 2023 19:45
Composer Autoload in CodeIgniter. This method provides Cmposer autoloader to be loaded before CodeIgniter classes. Useful to be used with dotenv file using PHP Dotenv package by josegonzalez.
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
@prasadsilva
prasadsilva / fresh-chrome-with-custom-tz.sh
Last active October 8, 2024 12:47 — forked from stuartsierra/fresh-chrome.sh
Launch new instances of Google Chrome on OS X with isolated cache, cookies, user config and custom Timezone
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@William-Lake
William-Lake / HowTo.md
Created January 7, 2018 13:35
How to send an email via mutt in a bash script on a recurring basis with crontab.

How to send an email via mutt in a bash script on a recurring basis with crontab.

This was suprisingly difficult for me, so I'm making this quick guide so I have it handy in the future.

Steps

  1. Set up mutt using this guide
  2. Create your bash script that will be sending emails using mutt.
  3. When creating your bash script, add the following line to your mutt command: