Recently I finally got around to adding my public key into my Github account, as described here
But then there is one more step you have to do to your already existing checked out projects to get them to use this. That is update the origin to use SSH and not HTTPS.
So cd to your project and run something like:
git remote set-url origin email@example.com:USER/PROJECTNAME.git
Arrived in NZ last week. Spent a few days slowly working my way down the country, stopping off at friends and family on the way.
Have made it to George’s house at long last.
This is what we have been making for the last few days: http://www.games.rekarnar.com/
Anyways, in Nelson now.. starting a new stage. Fun.
There is a few things I had trouble with getting Symfony2 to work on Dreamhost shared hosting. All in all it was quite a mission. So here are some of my steps to help for next time.
We would like to use PHP 5.4. But default the PHP Cli is 5.2. So some changes are required.
Note: Also make sure your domain is set to PHP 5.4 in the Dreamhost Panel.
First we need to enable the custom php.ini, since we also need to add in some extensions for Symfony2. More info here
So to enable PHP 5.4 for all sites, create this folder:
mkdir -p ~/.php/5.4
Then in your .bash_profile in your home folder, add:
So we are always set with the right version.
Run all the code from the first Gist in your home folder. This will compile the APC extension:
Then open this file and add in the config from the second window above:
(this enables the required extensions and links the apc module we just made)
From now we we should be set. You can test by running:
$ which php
hopefully it says something like: /usr/local/php54/bin/php
Make sure we have composer:
curl -sS https://getcomposer.org/installer | php
We also need to add in Icu to our require field in composer.json since the Intl Apache module at Dreamhost is a little old. As noted here
Next update your project to include that:
php ../composer.phar update --no-dev -o
Perhaps you can do a little dance or something if everything went well. But please celebrate any way you feel appropriate.
Arrived safe and sound in Calcutta, for the fourth or fifth time. Caught up with David and his family. Got old room back. Schemed about the future. Prayed. Finished setting up room. Not so hot. This is going to be a good season I feel. Tired now though. Excited to see what tomorrow holds.
2013 Highlights and thanks:
- Went to 6 counties.
- Succeeded in travelling the Leh-Manali road.
- Got to visit my family back in NZ
- Attended my little brothers wedding
- Met my uncle whom I had not seen for many years, who then passed on a few months ago.
- Had a sauna in wellingon!
- My student loan was paid off
- Drank 2 litres of milky yoghurt in 7 minutes
- Thankyou Jesus for all the fun times.
This years plans:
- To share what I have received in more exotic places
- To run in fullness of life
- To make some resolutions
UPDATE:: Things I have just remembered..
Some notes to remember how to create a special functions in a plugin that can only be seen by a user with that role only.
Note this saves to the database, so add it in your plugin activation codes:
$result = add_role(
__( 'Fancy Role Name' ),
'my_custom_capacity' => true,
'read' => true
$role = get_role( 'administrator' );
$role->add_cap( 'my_custom_capacity' );
Note I also add it into admin role, this is so the admins will also be able to access this.
Then my menus look like this:
add_menu_page( 'Menu Name', 'Menu Name', 'my_custom_capacity', 'plugin_name/plugin_name.php', '', 'http://www.mysite.com/favicon.ico', 67 );
[2013-12-19 22:13:51] accepted: 1/1 (100.00%), 5.22 khash/s (yay!!!) <- our first doge.
So 100doge = 10rs. And we can get about 250/day.. that means 25 rupees a day. Fun!
much donate: DRCo4cspPHdn1d8V7EDiW6683B5JnuV6yD
If you can make something, that would be used for both great good and evil, is it worth making? it is ok to make? should you make it? how do you decide? how do you weigh it up? God made free will, which is the source of great good and also great evil. Love comes from free will (agency) so it is has the potential for such great good, but also unnameable evils have come, but he made it anyways right. Is this a model for us when creating such tools? Should we weight up the greatest good VS the greatest evil possible outcomes and then decide based upon them? Or just do it anyways?