Skip to content

Instantly share code, notes, and snippets.

@bzerangue
bzerangue / rfc-date-to-iso-date.xsl
Created March 9, 2011 16:11
[XSLT] Convert RFC 2822 format to ISO date format
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <[email protected]>
URL: http://symphony21.com/downloads/xslt/file/20457/
Description:
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format)
@AlexChittock
AlexChittock / findPHPFilesWithTrailingWhitespace.sh
Created September 18, 2012 10:01
Find PHP files with trailing whitespace
find . -name "*.php" | xargs grep -c -P '\s+$' | grep -v ':0$'
@liesen
liesen / äkta-människor.md
Last active February 28, 2021 19:09
ÄKTA MÄNNISKOR, DAVID EISCHERS KOD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sacristan
Sacristan / push_commits_by_chunks.sh
Last active September 10, 2024 16:36
Push commits by chunks
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=10
# check if the branch exists on the remote
# if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# # if so, only push the commits that are not on the remote already
# range=$REMOTE/$BRANCH..HEAD
# else
# # else push all the commits