alias gitclean="git branch --merged | egrep -v \"(^*|master|main)\" | xargs git branch -d; git remove prune origin"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest/md5' | |
email_hash = Digest::MD5.hexdigest("albertski@hey.com") | |
puts email_hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
display_usage() { | |
echo "This script should be run with one argument." | |
echo "Example: rwulr http://www.siteurl.com" | |
} | |
if [ $# -le 0 ] | |
then | |
display_usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get month name from integer. | |
* | |
* @param integer $month_number Month number. | |
* | |
* @return string Month name. | |
*/ | |
function get_month_name($month_number) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Theme - Soda/Monokai Soda.tmTheme", | |
"default_line_ending": "unix", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"extensions": | |
[ | |
"module", | |
"install", | |
"inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Embed a view with a title. Pretty much copying the views_embed_view() but | |
* adding the ability to display title. | |
* | |
* @param string $name The name of the view to embed. | |
* @param string $display_id The display id to embed. If unsure, use 'default', | |
* as it will always be valid. But things like 'page' | |
* or 'block' should work here. | |
* @param string $title_tag The html header tag (h1, h2, h3, etc..). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Process the form. | |
* | |
* @param \Symfony\Component\HttpFoundation\Request $request | |
* @param \Symfony\Component\Form\FormInterface $form | |
* @param boolean $removeExtraFields | |
*/ | |
private function processForm(Request $request, FormInterface $form, $removeExtraFields = FALSE) | |
{ |