gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub
copy public key and set as a deploy key on github e.g https://github.com///settings/keys
gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub
copy public key and set as a deploy key on github e.g https://github.com///settings/keys
# Gunicorn Site systemd service file | |
[Unit] | |
Description=Gunicorn server for SITENAME-staging.example.com | |
After=network.target | |
After=syslog.target | |
Environment=sitedir=/Development/sites/SITENAME-staging.example.com | |
ExecStart=$(sitedir)/virtualenv/bin/gunicorn --chdir $(sitedir)/source workouts.wsgi:application --bind unix:/tmp/SITENAME-staging.example.com.socket | |
Restart=on-failure |
/* | |
* | |
* File: locate-pointer.c | |
* | |
* Some windows manager missing option to locate mouse pointer as accessibity feature. | |
* To get transparent window need to activate `composite` service for wm. | |
* Coded in c / xlib / cairo so it can work in most wm's. | |
* | |
* Coded by: Abdellah Chelli | |
* Date: January 2015 |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
Eg. URL translating en page to es | |
http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com | |
Define the web interface language to be English by adding | |
hl=en to the end of the URL and after the change the URL will look | |
like this: | |
http://www.google.com/search?hl=en | |
When you use more than one setting code in the URL, you need to use |
<?php | |
class TestCase extends Illuminate\Foundation\Testing\TestCase { | |
/** | |
* Creates the appliation. | |
* | |
* @return \Symfony\Component\HttpKernel\HttpKernelInterface | |
*/ | |
public function createApplication() |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
onAfterDispatch | |
onAfterExecute | |
onAfterInitialise | |
onAfterRender | |
onAfterRespond | |
onAfterRoute | |
onAfterSessionStart | |
onBeforeCompileHead | |
onBeforeExecute | |
onBeforeIndex |
// Get the database object | |
$db = JFactory::getDbo(); | |
// JTableCategory is autoloaded in J! 3.0, so... | |
if (version_compare(JVERSION, '3.0', 'lt')) | |
{ | |
JTable::addIncludePath(JPATH_PLATFORM . 'joomla/database/table'); | |
} | |
// Initialize a new category |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.