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
| source "https://rubygems.org" | |
| gem "activerecord", "= 4.2.0" | |
| gem "actionview", "= 4.2.0" | |
| gem "sqlite3" |
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 updateApk = function(apkUrl) { | |
| var downloader = require("com.mykingdom.downloader").createAsyncDownloader({ | |
| filesToDownload: [{url : apkUrl}], | |
| outputDirectory: Ti.Filesystem.getFile("file:///mnt/sdcard/download"), | |
| enableNotification: true, notificationId: 1, notificationTitle: "Downloading new APK" // Optional | |
| }); | |
| downloader.addEventListener("error", function(event){ | |
| alert(event.error + " : While downloading file at (index 0 based) = " + event.currentIndex); | |
| }); | |
| downloader.addEventListener("onload", function(event){ |
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
| require 'sshkit' | |
| require 'sshkit/coordinator' | |
| require 'sshkit/host' | |
| require 'sshkit/dsl' | |
| SSHKit::Backend::Netssh.configure do |backend| | |
| backend.pty = true | |
| end | |
| def echo_vulnerability(host, issue) |
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
| require 'aws-sdk' | |
| require 'bcdatabase' | |
| config = Bcdatabase.load[:secrets, :paperclip_s3] | |
| AWS.config(config) | |
| BUCKET = AWS::S3.new.buckets[config['bucket']] | |
| require 'find' | |
| Find.find('public/system/') { |f| |
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
| class JustLogEnv | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| Rails.logger.info env.inspect | |
| @app.call(env) | |
| end | |
| end |
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
| source 'https://rubygems.org' | |
| gem 'activerecord', '~> 3.2.18' | |
| gem 'sqlite3', '= 1.3.5' | |
| gem 'rspec' |
NewerOlder