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)
" 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 |
# | |
# OpenSSL example configuration file. | |
# This is mostly being used for generation of certificate requests. | |
# | |
# This definition stops the following lines choking if HOME isn't | |
# defined. | |
HOME = . | |
RANDFILE = $ENV::HOME/.rnd |
#!/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 | |
require "socket" | |
require "uri" | |
if ENV["DATABASE_URL"] | |
url = URI.parse ENV["DATABASE_URL"] | |
puts "Waiting for DB on #{url}..." | |
30.times do | |
begin |
class ApplicationController < ActionController::Base | |
before_action :set_radius_user_cache_key | |
# bunch-o-auth stuff goes here | |
private | |
def set_radius_user_cache_key | |
if current_user | |
cookies[:_radius_user_cache_key] = { value: current_user.cache_key, domain: :all, tld_length: 2 } |