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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>local.sync_movies</string> | |
| <key>StartCalendarInterval</key> | |
| <dict> |
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
| # Dir["*.{srt}"].each do |f| | |
| # | |
| # replace = "S4" | |
| # por = "S04" | |
| # | |
| # File.rename(f, f.gsub(replace, por)) | |
| # | |
| # end | |
| # Dir["*.{srt}"].each do |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
| config.yml | |
| downloaded.log |
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 BitArray | |
| attr_accessor :array | |
| def initialize(value = nil) | |
| if value | |
| @array = value.to_s(2).split('').map {|i| i.to_i} | |
| else | |
| @array = [] | |
| 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
| gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH Untitled-2.pdf Untitled-2-1.pdf |
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/ruby | |
| require 'fileutils' | |
| require 'rubygems' | |
| require 'commander/import' | |
| require 'ostruct' | |
| require 'yaml' | |
| class AppSetuper | |
| DEPLOY_TO = "/var/www" |
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 'rubygems' | |
| require 'mechanize' | |
| require 'rufus/scheduler' | |
| require 'growl' | |
| class Logger | |
| def self.log(msg, title=nil, sticky=false, show_time=true) | |
| time = show_time ? "\n#{Time.now.strftime('%a %d %b %H:%M')}" : '' | |
| Growl.notify "#{msg}#{time}", :title=>title, :sticky=>sticky |
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
| on run {input, parameters} | |
| tell application "Terminal" | |
| activate | |
| set p to (quoted form of POSIX path of (input as string)) | |
| set s to "if [ -d " & p & " ]; then cd " & p & "; else cd `dirname " & p & "`; fi" | |
| if (the (count of the window) = 0) or (the busy of window 1 = true) then | |
| do script s | |
| else | |
| do script s in window 1 |
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
| PATH=/usr/local/bin:$PATH | |
| alias ll="ls -l" | |
| alias cd..="cd .." |
NewerOlder