Skip to content

Instantly share code, notes, and snippets.

Anselm Christophersen anselmdk

Block or report user

Report or block anselmdk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View EmptyCacheTask.php
<?php
/**
* EmptyCacheTask
* See also https://github.com/markguinn/sstools/blob/master/code/SSTasks.php for more like this
*
*
* @author Anselm Christophersen <ac@title.dk>
* @package titlelibs
* @subpackage tasks
*/
@anselmdk
anselmdk / gist:f4d3b708a46b32ce1afb
Created Jan 12, 2015
remove html body to see a formatted `var_dump` from php
View gist:f4d3b708a46b32ce1afb
var pre = $('pre');
$('body').remove();
$('html').append(pre);
@anselmdk
anselmdk / bash
Created Nov 18, 2015
Check PHP server time through command line
View bash
php -r "echo date('Y-m-d h:i:s a', time());"
@anselmdk
anselmdk / README.md
Last active Nov 24, 2015
Understanding React w. Redux(WORK IN PROGRESS)
View README.md

Want to build a website using React and Redux? Here's a few concepts you'll need to grasp

  • Browserify makes it possible to write node syntax in javascript files
  • Watchify is the watch mode for Browswerify
  • Webpack is a module bundler that is almost exclusively used with Redux projects

Resources

@anselmdk
anselmdk / gist:ccdb0a91913f2f474578
Last active Jan 30, 2016
Convert file from lation1 to utf-8
View gist:ccdb0a91913f2f474578
iconv --from-code=ISO-8859-1 --to-code=UTF-8 old.txt > new.txt
View 0.README-Linux-Command-Line-Cheat-Sheet.md

A collection of Linux commands and concepts I tend to forget

View vim-cheatsheet.md

VIM Cheat Sheet

Description  Command
Up, down, left right k, j, h, l
Jump words (& back) w, b
 End/beginning of line $, ^/0
End/beginning of file G, gg
Line numbers set number
View 0.REAME-Hosting-Cheat-Sheet.md

A collection of notes related to hosting

@anselmdk
anselmdk / DataObjectSnippet.md
Last active Jul 7, 2018
SilverStripe Cheat Sheet
View DataObjectSnippet.md

DataObject Snippet

View emailing.md
You can’t perform that action at this time.