This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
| # source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
| # First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
| git clone git://server.com/my-repo1.git | |
| # After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
| git filter-branch --subdirectory-filter your_dir -- -- all | |
| # This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
| <?php | |
| // Machine name for our custom node | |
| define('NODE_NAME', 'the_node_machine_name'); | |
| // Machine name for our custom taxonomy | |
| define('TAXONOMY_NAME', 'the_taxonomy_machine_name'); | |
| function module_install() { | |
| _create_taxonomy(); | |
| _create_content_type(); | |
| } |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * @file | |
| * This is a Git pre-commit hook that informs you when you are | |
| * about to commit whitespace or a debug function. | |
| */ | |
| $red = "\033[1;31m"; | |
| $red_end = "\033[0m"; |
| <?php | |
| // the current environment | |
| $env = $_ENV['ENVTYPE'] ? $_ENV['ENVTYPE'] : ''; | |
| // paths to search for drupal sites | |
| $paths = array( | |
| '/var/www/multisites/', | |
| '/var/www/schoolyard/', | |
| ); |
| <?php | |
| $args = drush_get_arguments(); | |
| if ( ! isset($args[2]) ) { | |
| drush_set_error('Usage: drush @<alias> scr generate-strongarm.php <module_name> <base_path>'); | |
| exit(); | |
| } | |
| $module_name = $args[2]; | |
| if ( ! isset($args[3]) ) { |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| { | |
| "env": { | |
| "browser": true | |
| }, | |
| "globals": { | |
| "Drupal": true, | |
| "jQuery": true, | |
| "tinyMCE": true | |
| }, | |
| "rules": { |
This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.