Git provides basic version control for your code. It also enables you to easily collaborate on shared code with other people.
# Initialize a new local git repository
git init
# Running this file will clean up all of the temp files in your rails projects | |
# Instructions: | |
# 1. Save the file wherever you want | |
# 2. Replace the RAILS_PATH with the path to your rails projects | |
# 3. Run `ruby this_file_name.rb` | |
# | |
RAILS_PATH = '/replace/with/your/path/to/rails/projects' | |
require 'rake' |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
require 'dropbox_sdk' # gem install dropbox-sdk | |
require 'fileutils' | |
require 'thread' | |
# Example: downloads entire dropbox | |
# DropboxDump.new('your_access_token', '/download/destination').download("/") | |
class DropboxDump | |
attr_accessor :client, :dest, :work_q, :worker_count | |
def initialize(access_token, dest, max_workers = 3) |
#!/bin/bash | |
# Drop this guy into /usr/local/bin folder for command line deployment through slack through rundeck. | |
# exit on failure | |
set -e | |
usage() { | |
cat << EOF | |
Usage: $0 -t <token> -r <room id> -e <environment> -b <branch> | |
or: $0 <environment> <branch> |
require 'rack' | |
# Since the requests are time-sensitive, you will need to regenerate the | |
# mock client requests for each of the versions before testing them | |
# against the different API versions. Otherwise they will all just return false. | |
API_AUTH_VERSION = '1.3.2' | |
# gem 'api-auth', '1.3.2' | |
# gem 'api-auth', '1.4.1' | |
# gem 'api-auth', '1.5.0' |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'octokit' | |
REPO = ENV["GITHUB_REPO"] | |
ACCESS_TOKEN = ENV["GITHUB_ACCESS_TOKEN"] | |
DELETE_OLDER_THAN_DAYS = ENV["DELETE_OLDER_THAN_DAYS"].to_i | |
DOIT = ENV["DOIT"] == "true" | |
client = Octokit::Client.new(access_token: ACCESS_TOKEN) | |
client.auto_paginate = true |