I hereby claim:
- I am digitalmoksha on github.
- I am digitalmoksha (https://keybase.io/digitalmoksha) on keybase.
- I have a public key ASDyGludJYeVdnN3qjMPN0Ar_x4MQ89X8P6nHBG7eeQy6go
To claim this, I am signing this object:
-- see if the file exists | |
function file_exists(file) | |
local f = io.open(file, "rb") | |
if f then f:close() end | |
return f ~= nil | |
end | |
-- 1. Replaces .md with .html | |
-- 2. Replaces absolute paths with relative ones | |
-- 3. Replaces folder links with links to their index / readme |
# test against both regular Ruby and RubyMotion | |
language: ruby | |
cache: | |
- bundler | |
# latest stable/supported versions | |
rvm: | |
- 2.4.6 | |
- 2.5.5 | |
- 2.6.3 |
# digitalmoksha - added the ability to show the repos email address | |
# If you would like to the email address used to commit code, then you can set | |
# GIT_PS1_SHOWEMAIL to a nonempty value. | |
#------------------------------------------------------------------------------ | |
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# | |
# Merge multiple git repositories into a new one. | |
# Users `git filter-branch` to rewrite paths, so that `git log` works seamlessly | |
# Built from the script at http://dominik.honnef.co/posts/2016/04/merging-git-repositories/ | |
#------------------------------------------------------------------------------ | |
new_repo = '/tmp/new_repo' | |
base = 'git@github.com:customer' | |
dest_branch = 'master' |
#!/usr/bin/env ruby | |
# Backup specified databases - place in a cron job | |
# Previously we used sftp to save files to a remote server. | |
# Now sync directly with a bucket on AWS S3 | |
# | |
# Use a MySQL configuration file (.cnf) to store the password, so that it doesn't | |
# appear in the process list | |
# | |
# example.cnf |
# The following code attempts to demonstrate a potential issue with regular | |
# expressions between Ruby and RubyMotion. | |
# | |
# The expression is supposed to match the text before an end of block character (^) | |
# So | |
# | |
# x = Class.new | |
# ^ | |
# | |
# should only return the first line, while |
#!/usr/bin/env ruby | |
#------------------------------------------------------------------------------ | |
#------------------------------------------------------------------------------ | |
def usage | |
puts "" | |
puts "usage: #{File.basename( __FILE__ )} [-t] PATH" | |
puts "" | |
puts "Automatically commits the changes of svn working copy located in PATH." |