Skip to content

Instantly share code, notes, and snippets.

Christopher Sexton csexton

Block or report user

Report or block csexton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View log.log
2017-12-28T23:02:53.697421+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.232Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697436+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.233Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697437+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.233Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697438+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.238Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697439+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.239Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697439+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.239Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697440+00:00 app[web.2]: [remote] player_773 2017-12-28T22:55:57.243Z [Rotator Main] Current content is complete, rotating
2017-12-28T23:02:53.697
View action_cable.js
(function() {
(function() {
(function() {
var slice = [].slice;
this.ActionCable = {
INTERNAL: {
"message_types": {
"welcome": "welcome",
"ping": "ping",
@csexton
csexton / index-files.log
Last active Aug 17, 2017
ChromeOS Issue 756193
View index-files.log
localhost 5aa019f5-27e0-418e-9a62-2bb1a8d207c2 # pwd
/home/chronos/u-1134631a3449ab75f309eabbd2a6c84545e065f4/Storage/ext/bcdedldcbikpjmjbllhobfaohpajojli/def/Service Worker/CacheStorage/9a2b2fcfe89d2acf3d92909929566b9a51c251b1/5aa019f5-27e0-418e-9a62-2bb1a8d207c2
localhost 5aa019f5-27e0-418e-9a62-2bb1a8d207c2 # ls -al ./**
-rw-r--r--. 1 chronos chronos 0 Aug 9 13:33 ./d70841621db5d4b7_0
-rw-r--r--. 1 chronos chronos 0 Aug 9 13:33 ./fa5e53aa798c61ca_0
-rw-r--r--. 1 chronos chronos 0 Aug 9 13:33 ./index
./index-dir:
total 16
View get-tz.js
get_tz = ()->
lat = $('input[name=lat]').val()
lng = $('input[name=lng]').val()
time = Math.round((new Date().getTime())/1000)
$.ajax(
url:"https://maps.googleapis.com/maps/api/timezone/json?location=#{lat},#{lng}&timestamp=#{time}&sensor=false",
).done((response) ->
if(response.timeZoneId != null)
console.log(response)
alert(response.timeZoneId)
@csexton
csexton / devtools.sh
Last active Aug 9, 2017
Script to enable remote chrome devtools
View devtools.sh
#!/bin/bash
#
# Remote devtools debugging - allows remote connectivity to Chrome dev tools for debugging kiosk session / etc.
#
# Originally from https://github.com/jay0lee/cros-scripts
#
# Run this script on a Chromebook:
# 1. Put Chromebook in developer mode - https://www.chromium.org/chromium-os/poking-around-your-chrome-os-device
# 2. Log into device. Press CTRL+ALT+T to open crosh shell.
# 3. Type "shell" to enter Bash shell.
@csexton
csexton / README.md
Created Aug 9, 2017
Setup Chrome Devtools
View README.md

Debugging a Kiosk App

In "Device Management > Chrome Management > Device Settings" under "Enrollment and Access" set "Forced Re-enrollment" to "Device is not forced to re-enroll after wiping".

Reboot device into Developer Mode (See device specific instructions here).

Normally this is done by holding the recovery button down during a reboot, and at the Recovery screen press Ctrl-D (there's no prompt - you have to know to do it). It will ask you to confirm, then reboot into dev-mode.

Configure the networking details and accepts terms, but DON'T LOG IN YET.

@csexton
csexton / delete-slack-files.rb
Created Jun 22, 2017
Bulk delete files from slack that are older than 30 days.
View delete-slack-files.rb
#!/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"
@csexton
csexton / 01.md
Last active Jun 14, 2017
Copied from jay0lee/cros-scripts
View 01.md

To run this:

  1. Put ChromeOS in developer mode

  2. Log into device. Press CTRL+ALT+T to open crosh shell.

  3. Type "shell" to enter Bash shell.

  4. Run this command

    bash <(curl -s -S -L https://rn-s.net/chrome-dev)
    
@csexton
csexton / .vimrc
Created Apr 19, 2017
A not-too-opinionated version of my vimrc file's basic settings
View .vimrc
" 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
@csexton
csexton / 1-how-to.md
Last active Mar 24, 2017
Do you even git, bro?
View 1-how-to.md

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

You can’t perform that action at this time.