Skip to content

Instantly share code, notes, and snippets.

View timani's full-sized avatar

Timani Tunduwani timani

View GitHub Profile
# 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
@timani
timani / #1
Last active August 29, 2015 14:02
Octostrap and octopress error running rake generate - Liquid Exception: Included file '_includes/customizer-variables.html' not found in assets/bootstrap/docs/customize.html
[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:
===============================================
<?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 
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
@timani
timani / gist:cdc487b5570db1723a91
Last active September 23, 2015 18:52
Installing Brackets IDE in Fedora 20 using https://github.com/jgillich/brackets-rpm

Installing the Brackets IDE in fedora 20

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.

Clone the brackets-rpm repo

$ git clone [email protected]:jgillich/brackets-rpm.git
@timani
timani / #2 -H is fd
Last active June 21, 2022 18:23
How to resolve the "Cannot connect to the Docker daemon. Is 'docker -d' running on this host?" by setting the DOCKER_HOST
```
$ 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
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
@timani
timani / gist:ef894c5c5ab7e16c8e85
Created October 30, 2014 00:39
Renaming instances of _tk in the WordPress, twitter bootstrap theme using find and sed - https://github.com/Themekraft/_tk/
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" {} +