This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
if len(sys.argv) > 1: | |
files = [] | |
for arg in sys.argv[1:]: | |
if os.path.exists(arg): | |
p = os.path.abspath(arg).replace('\\', '\\\\').replace('"', '\\"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
if len(sys.argv) > 1: | |
files = [] | |
for arg in sys.argv[1:]: | |
if os.path.exists(arg): | |
p = os.path.abspath(arg).replace('\\', '\\\\').replace('"', '\\"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Visit: | |
# /main/set_flash | |
# /main/show_no_flash (as many times as you like) | |
# /main/show_flash ... and it shows the flash message | |
# (Rails 4.1.8, Ruby 2.1.1) | |
# app/controllers/main_controller.rb | |
class MainController < ApplicationController | |
def show_flash | |
render inline: flash[:notice] || "Flash is blank!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/folders/l0/_plw_97n7_58gh3pw0frb6n40000gp/T/ruby-build.20141029142311.82144 ~ | |
HTTP/1.1 200 OK | |
Content-Type: binary/octet-stream | |
Content-Length: 11338691 | |
Connection: keep-alive | |
Date: Tue, 28 Oct 2014 21:07:15 GMT | |
Last-Modified: Fri, 23 May 2014 08:14:39 GMT | |
ETag: "5ef5d9c07af207710bd9c2ad1cef4b42" | |
Accept-Ranges: bytes | |
Server: AmazonS3 |