create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
The MIT License (MIT) | |
Copyright (c) James Dennes | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
<? | |
// make sure the folder of the script is writeble (0777) | |
$basecampUrl = '[YOUR BASECAMP URL HERE]'; // e.g. https://stelabouras.basecamphq.com/ (Don't forget the trailing slash!) | |
$apiKey = '[YOUR API KEY HERE]'; // e.g. one huge string (found in 'My info' in the Authentication tokens section) | |
function BasecampCall($endPoint, $usePrefix = true) { | |
global $apiKey, $basecampUrl; | |
// From: http://prattski.com/2008/10/22/basecamp-api-examples-using-php-and-curl-get/ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
<!-- 1. Take your Campaign Monitor subscribe form as generated from within your account: --> | |
<form action="http://myaccount.createsend.com/t/r/s/aljhk/" method="post" id="subForm"> | |
<div> | |
<label for="name">Name:</label><br /><input type="text" name="cm-name" id="name" /><br /> | |
<label for="aljhk-aljhk">Email:</label><br /><input type="text" name="cm-aljhk-aljhk" id="aljhk-aljhk" /><br /> | |
<input type="submit" value="Subscribe" /> | |
</div> | |
</form> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title> - jsFiddle demo by fahdi</title> | |
<script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script> | |
{ "options": [ {"value": "New1", "text": "New Option 1"}, {"value": "New2", "text": "New Option 2"}, {"value": "New3", "text": "New Option 3"} ] } |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
#!/bin/sh | |
#This is a simple bash script that will poll github for changes to your repo, | |
#if found pull them down, and then rebuild and restart a Jekyll site running | |
#in Nginx. Note, we cannot use cron to schedule a job every 5 seconds, so we create | |
#a script that executes an infinite loop that sleeps every 5 seconds | |
#We run the script with nohup so it executes as a background process: $nohup ./update-jekyll | |
while true | |
do |
<?php | |
/* | |
* If you already have something in your functions.php, please remove these first few lines | |
*/ | |
function tec_forum_939516( $json, $event, $additional ){ | |
$venue = tribe_get_venue_id( $event ); | |
if ( $venue ){ | |
$json['venue'] = $venue; |