Skip to content

Instantly share code, notes, and snippets.

@agsdot
agsdot / convert.sh
Created December 5, 2018 18:51 — forked from danveloper/convert.sh
Java to Groovy converter in bash!!
#!/bin/sh
find . -iname "*.java" -exec sed s/\;$// {} \;
@agsdot
agsdot / open_source_church_software.md
Created December 4, 2018 00:32 — forked from seven1m/open_source_church_software.md
List of Open Source Church Software
@agsdot
agsdot / mailhog.md
Created May 24, 2018 22:49 — forked from opi/mailhog.md
Install and configure MailHog (for Drupal) with a nice systemd unit and apache reverse proxy

MailHog (for Drupal) on Debian Stretch

MailHog is a nice mail testing tool for developers.

Website: https://github.com/mailhog/MailHog

Installation

Download the latest release on your local machine

@agsdot
agsdot / mail-test.php
Created April 10, 2018 22:52 — forked from Dreyer/mail-test.php
Quick & Dirty PHP Mail Test Script
<?php
/*
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!
*/
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = 'webmaster@example.com';
@agsdot
agsdot / filter-branch-prepend-and-append
Created November 3, 2017 06:38 — forked from openjck/filter-branch-prepend-and-append
Using sed and filter-branch to prepend and append to Git commit messages without newlines
# Prepending text to the five most recent commit messages:
git filter-branch --msg-filter 'sed "s/\(.*\)/[prepended text] \1/g"' HEAD~5..HEAD
# Appending text to the five most recent commit messages:
git filter-branch --msg-filter 'sed "s/\(.*\)/\1 [appended text]/g"' HEAD~5..HEAD
@agsdot
agsdot / rewrite-lg2s.sh
Created October 29, 2017 08:58 — forked from carlosmn/rewrite-lg2s.sh
An extremely case-specific implementation of git-filter-branch
#!/bin/bash
# It's no libgit2, but it's pretty useful
. $(git --exec-path)/git-sh-setup
cd_to_toplevel
require_clean_work_tree
set -e
@agsdot
agsdot / pacaur_install.sh
Created August 10, 2017 21:44 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
@agsdot
agsdot / removeamazon.sh
Created August 2, 2017 20:53
Remove amazon for ubuntu >= 16.04
#!/usr/bin/env bash
sudo rm /usr/share/applications/ubuntu-amazon-default.desktop
sudo rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/Amazon.user.js
sudo rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json
@agsdot
agsdot / spacemacs-keybindings
Created June 14, 2017 07:43 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |