To run this:
-
Log into device. Press
CTRL+ALT+T
to open crosh shell. -
Type "shell" to enter Bash shell.
-
Run this command
bash <(curl -s -S -L https://rn-s.net/chrome-dev)
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'json' | |
require 'uri' | |
puts " You need a slack toke for your user on the team you'd like to delete" | |
puts "files from. Visit the following url to get a token:" | |
puts | |
puts "https://api.slack.com/custom-integrations/legacy-tokens" |
To run this:
Log into device. Press CTRL+ALT+T
to open crosh shell.
Type "shell" to enter Bash shell.
Run this command
bash <(curl -s -S -L https://rn-s.net/chrome-dev)
#!/bin/bash | |
# Usage: | |
# | |
# create-ssh-tunnel <host> <remote-internal-port> | |
# | |
# Add this to your crontab: | |
# | |
# */1 * * * * ~/bin/create-ssh-tunnel joe@server 3333 > ~/ssh-tunnel.log 2>&1 | |
# | |
# Then on the remote host: |
" https://github.com/csexton/dotfiles/blob/master/home/vimrc | |
" Plugins {{{ | |
" A few plugis I like and recomend: | |
" | |
" https://github.com/csexton/spacemanspiff.vim | |
" https://github.com/csexton/trailertrash.vim | |
" https://github.com/kchmck/vim-coffee-script | |
" https://github.com/slim-template/vim-slim | |
" https://github.com/thoughtbot/vim-rspec |
Step 1: Save the script to some place in your $PATH
and make it executable.
Step 2: git config --global alias.bro '!git-browse'
Step 3: When everyou want to view a branch on github, just git bro
class AddTemplateDataToContents < ActiveRecord::Migration[5.0] | |
def up | |
add_column :contents, :template_data, :hstore, default: '', null: false | |
execute <<~END | |
UPDATE contents | |
SET template_data = hstore('url', subquery.url) | |
FROM (SELECT id, url FROM contents) as subquery | |
WHERE contents.id=subquery.id; | |
END | |
remove_column :contents, :url, :string |
#!/usr/bin/env ruby | |
require "net/http" | |
require "net/https" | |
require "uri" | |
require "json" | |
require "optparse" | |
require "ostruct" | |
### What is going on here? | |
# |
require "rails_helper" | |
RSpec.describe "My Controller Requests", type: :request do | |
end |
#!/usr/bin/env ruby | |
# Heroku enviroment helper script | |
# | |
# This is to streamline using differnt heroku enviroments from one repo. | |
# Symlink this file to an envroment name (as set by the git-remote name), then | |
# when running that symlink the script will look up the name in the git config | |
# and use that remote as the heroku name. | |
# | |
# Setup: |
#!/usr/bin/env ruby | |
require "socket" | |
require "uri" | |
if ENV["DATABASE_URL"] | |
url = URI.parse ENV["DATABASE_URL"] | |
puts "Waiting for DB on #{url}..." | |
30.times do | |
begin |