NOTE: 534 stars, 106 forks. I love you all. Please contribute tips and edits back to this cheat sheet -- email's [email protected] and you can treat gists like git repositories and send git diffs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ways to execute a shell script in Ruby | |
# Example Script - Joseph Pecoraro | |
cmd = "echo 'hi'" # Sample string that can be used | |
# 1. Kernel#` - commonly called backticks - `cmd` | |
# This is like many other languages, including bash, PHP, and Perl | |
# Returns the result of the shell command | |
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[timani@localhost documentation]$ rake generate | |
## Generating Site with Jekyll | |
unchanged sass/screen.scss | |
Configuration file: /home/timani/Jekyll/documentation/_config.yml | |
Source: source | |
Destination: public | |
Generating... | |
jekyll 2.0.3 | Error: | |
=============================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="FtpUpload" default="main"> | |
<!-- Include properties file. --> | |
<property file="build.properties" /> | |
<fileset dir="upload" id="TheFiles"> | |
<include name="phpinfo.php" /> | |
</fileset> | |
<ftpdeploy |
NOTE: 534 stars, 106 forks. I love you all. Please contribute tips and edits back to this cheat sheet -- email's [email protected] and you can treat gists like git repositories and send git diffs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
Brackets is JavaScript based, lightweight IDE. There are installation packages for Debian, Mac and windows but there is no official Fedora package.
These instructions cover using the brackets-rpm that is based on the .deb
version to install the IDE. The README contains directions if you want to convert another version using alien
and rpmrebuild
.
$ git clone [email protected]:jgillich/brackets-rpm.git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
$ sudo systemctl status docker | |
docker.service - Docker Application Container Engine | |
Loaded: loaded (/usr/lib/systemd/system/docker.service; static) | |
Active: active (running) since Sat 2014-08-23 12:52:19 PDT; 43min ago | |
Docs: http://docs.docker.com | |
Main PID: 18107 (docker) | |
CGroup: /system.slice/docker.service | |
└─18107 /usr/bin/docker -d -H fd:// --selinux-enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
# | |
# Important to note, this is the version of PHP used to run this build, not the | |
# one used to run your Drupal installation. Ensure compatibility with the Drush | |
# and Terminus versions you're using for this build. | |
# | |
php: | |
- 5.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name "*.php" -exec sed -i -e "s/'_tk'/'mythemename'/g" -e "s/_tk_/mythemename_/g" -e "s/ _tk/ Mythemename/g" -e "s/_tk-/ mythemename-/g" {} + |