An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
#Create a folder subdomain, and make it work like a domain. | |
RewriteCond %{HTTP_HOST} mysite.com.ar | |
RewriteCond %{REQUEST_URI} !^/mysite #mysite_folder | |
RewriteRule ^(.*)$ mysite/$1 [L] #mysite_folder |
#From: http://support.lunarpages.com/knowledge_bases/article/549 | |
# .htaccess primary domain to subfolder redirect | |
# Copy and paste the following code into the .htaccess file | |
# in the public_html folder of your hosting account | |
# make the changes to the file according to the instructions. | |
# Do not change this line. | |
RewriteEngine on | |
# Change yourdomain.com to be your primary domain. |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
trait RestControllerTrait { | |
/** | |
* Manage index request |
This is a reference guide for Icons and Splash screen resolutions for Android and iOS Cordova/Phonegap Apps. This guide is only for Mobile Phone Devices.
<link rel="apple-touch-icon" href="icon.png">
, in the <head>
of index.html.Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
user nginx; | |
worker_processes 1; #2 | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
worker_rlimit_nofile 20000; | |
events { | |
worker_connections 10000; | |
multi_accept on; | |
accept_mutex on; |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm