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
| #!/bin/bash | |
| sudo kextunload -b org.virtualbox.kext.VBoxUSB | |
| sudo kextunload -b org.virtualbox.kext.VBoxNetFlt | |
| sudo kextunload -b org.virtualbox.kext.VBoxNetAdp | |
| sudo kextunload -b org.virtualbox.kext.VBoxDrv | |
| sudo kextload /Library/Extensions/VBoxDrv.kext -r /Library/Extensions/ | |
| sudo kextload /Library/Extensions/VBoxNetFlt.kext -r /Library/Extensions/ | |
| sudo kextload /Library/Extensions/VBoxNetAdp.kext -r /Library/Extensions/ |
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
| - (UIImage*)blurImage | |
| { | |
| // Create our sourcePicture for processing | |
| GPUImagePicture *sourcePicture = [[[GPUImagePicture alloc] initWithImage:self] autorelease]; | |
| // init the fast blur filter | |
| GPUImageFastBlurFilter *blurFilter = [[[GPUImageFastBlurFilter alloc] init] autorelease]; | |
| // set some parameters for the fast blur | |
| [blurFilter setBlurPasses:3.0f]; |
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 'fog' | |
| require 'socket' | |
| namespace :pg do | |
| def fog | |
| @fog ||= Fog::Storage.new({ | |
| provider: Rails.configuration.fog['provider'], | |
| aws_access_key_id: Rails.configuration.fog["aws_access_key_id"], | |
| aws_secret_access_key: Rails.configuration.fog["aws_secret_access_key"] | |
| }) |
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
| comet.dbld8.com: Started POST "/me/photo" for 95.199.135.109 at 2013-02-27 08:18:52 +0000 | |
| comet.dbld8.com: Processing by UserPhotoController#create as */* | |
| comet.dbld8.com: Parameters: {"image"=>#<ActionDispatch::Http::UploadedFile:0x93b0584 @original_filename="image.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"image\"; filename=\"image.png\"\r\nContent-Type: image/png\r\n", @tempfile=#<File:/tmp/RackMultipart20130227-18265-1l5f2rn>>} | |
| comet.dbld8.com: Completed 500 Internal Server Error in 293ms |
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
| # I love Object#tap | |
| def interests_matching_with(another_user) | |
| common_interests = (interests.pluck(:id) & another_user.interests.pluck(:id)) | |
| interests.map do |interest| | |
| interest.tap { |n| n.matched = common_interests.include?(n.id) } | |
| 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
| /** | |
| * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) | |
| */ | |
| protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
| PrintWriter out = response.getWriter(); | |
| response.setContentType("text/plain"); | |
| ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
| try { | |
| ActionStatus jObject = new ActionStatus(); |
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
| { | |
| "auto_complete_commit_on_tab": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/Made of Code.tmTheme", | |
| "font_size": 12.0, | |
| "font_face": "Menlo", | |
| "gutter": true, | |
| "highlight_line": true, | |
| "hot_exit": false, | |
| "remember_open_files": false, |
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
| <?php | |
| $selected = $this->getRequired('selected'); | |
| $urlBase = App::urlBase(); | |
| $menuDataList = array( | |
| 'intro' => array( | |
| 'href' => $urlBase.'/about/intro', | |
| 'label' => 'Introduction', |
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
| # Generated by resolvconf | |
| search dc.dc.cox.net | |
| nameserver 68.105.28.12 | |
| nameserver 68.105.29.12 | |
| nameserver 68.105.28.11 |
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 riak, csv | |
| client = riak.RiakClient() | |
| bucket = client.bucket('goog') | |
| quotes = list(csv.reader(open('goog.csv', 'rb'), delimiter=',')) | |
| header = quotes.pop(0) | |
| total = len(quotes) |