Skip to content

Instantly share code, notes, and snippets.

View anselmdk's full-sized avatar

Anselm Christophersen anselmdk

View GitHub Profile
<?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 January 12, 2015 15:09
remove html body to see a formatted `var_dump` from php
var pre = $('pre');
$('body').remove();
$('html').append(pre);
@anselmdk
anselmdk / bash
Created November 18, 2015 12:57
Check PHP server time through command line
php -r "echo date('Y-m-d h:i:s a', time());"
@anselmdk
anselmdk / README.md
Last active November 24, 2015 09:26
Understanding React w. Redux(WORK IN PROGRESS)

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 January 30, 2016 10:50
Convert file from lation1 to utf-8
iconv --from-code=ISO-8859-1 --to-code=UTF-8 old.txt > new.txt
@anselmdk
anselmdk / 0.README-Linux-Command-Line-Cheat-Sheet.md
Last active July 29, 2020 14:43
Linux Command Line Cheat Sheet

A collection of Linux commands and concepts I tend to forget

@anselmdk
anselmdk / vim-cheatsheet.md
Last active January 30, 2017 09:04
VIM Cheatsheet

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
@anselmdk
anselmdk / 0.REAME-Hosting-Cheat-Sheet.md
Last active January 30, 2017 09:14
Hosting Cheat Sheet

A collection of notes related to hosting

@anselmdk
anselmdk / DataObjectSnippet.md
Last active July 7, 2018 11:19
SilverStripe Cheat Sheet

DataObject Snippet

@anselmdk
anselmdk / emailing.md
Last active August 24, 2018 17:39
Mamp