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 SketchSystems.spec
LoggedOut*
loginSuccess -> OverdraftFlow
loginFailed -> Error
Error
retried -> LoggedOut
OverdraftFlow
cancelled -> LoggedOut
company
View SketchSystems.spec
Logged Out*
login completed -> Overdraft Flow
Overdraft Flow
cancelled -> Logged Out
Select Company
no company selected
company selected -> company selected
company selected
submit clicked -> Select Amount
View vagrant.md
@anselmdk
anselmdk / README.md
Last active Apr 26, 2017
Ubuntu Desktop
View README.md

...for web development. Using as a secondary machine to my Macbook Pro.

Allow SSH access

# install ssh server
sudo apt-get install openssh-server
# check status
sudo service ssh status
# edit config:
View automated.md
@anselmdk
anselmdk / AppFormFactory.php
Created Nov 30, 2016
SilverStripe 4 React Form Schema on frontend POC
View AppFormFactory.php
<?php
use SilverStripe\Forms\FormFactory;
use SilverStripe\Forms\DefaultFormFactory;
use SilverStripe\Control\Controller;
/**
* AppFormFactory
*
* @author Anselm Christophersen <ac@anselm.dk>
@anselmdk
anselmdk / readme.md
Last active Apr 19, 2017
SSH Cheat Sheet
View readme.md

SSH

Continue running a command also when the connection drops

screen
# when returning, run:
screen -x

# also:
@anselmdk
anselmdk / readme.md
Last active Nov 14, 2016
Wordpress Cheat Sheet
View readme.md

Wordpress cheat sheet

Create test user

INSERT INTO `databasename`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('1000', 'anselm', MD5('anselm'), 'AC', 'ac@cphcloud.com', '', '2011-06-07 00:00:00', '', '0', 'AC');
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1000', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `databasename`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1000', 'wp_user_level', '10');
You can’t perform that action at this time.