I hereby claim:
- I am mkoby on github.
- I am mkoby (https://keybase.io/mkoby) on keybase.
- I have a public key ASCuYID2JnSDplUfONleZN2KiMrgq8RXLtUxvgUv-o1rQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # This shell script will process & encode a single video file, and output 3 | |
| # seperate files in the following formats: WebM, Ogg Theora, & h.264 for | |
| # streaming via an HTML5 player. | |
| # | |
| # You'll need ffmpeg, libvorbis, libvpx, & x264 installed to run this | |
| # script. ffmpeg can be installed via Homebrew on a Mac. | |
| # Modifications made for resolution and quality where needed. |
| $('#add_webpage, #add_bag, #add_bag_to_webpages, #add_divider, #add_blurb').on('hidden', function() { | |
| return $.clearInput(); | |
| }); |
| %ul.nav.nav-tabs | |
| %li{ :class => "#{ "active" if @BasAllActive }" } | |
| = link_to "all", bags_url(:id => h(@user.username)) | |
| %small (#{@user.bags.count}) | |
| #all_tag_and_query | |
| - if @BasAllTips && [email protected]? | |
| = render :partial => '/share/arr_and_tag', :locals => { :bags_count => @bags.total_entries, :tag => @tag } | |
| %li{ :class => "#{ "active" if @DraftActive }" } | |
| = link_to "draft", bags_by_scope_url(:id => h(@user.username), :extra_params => "draft") | |
| %small (#{@user.bags.unpublish.count}) |
| #Set the mergetool | |
| git config --global merge.tool diffmerge | |
| git config --global mergetool.diffmerge.cmd 'diffmerge --merge --result="$MERGED" "$LOCAL" "$(if test -f "$BASE"; then echo "$BASE"; else echo "$LOCAL"; fi)" "$REMOTE"' | |
| #Tell git to trust the mergetool's exit code, this way git doesn't always ask if the merge was successful | |
| git config --global mergetool.diffmerge.trustExitCode true | |
| #When a merge conflict happens, you can load the mergetool with | |
| git mergetool |
| #Create a new 'dev' branch in Git | |
| git branch dev | |
| #See a list of branches | |
| git branch | |
| #You can switch to the branch using 'checkout' | |
| git checkout dev | |
| #If you want to checkout and create a new branch in a single command run |
| # To set up a local remote of our current repository, we need to do a few things | |
| # Here I assume the directory to the repository is ~/codecasts.tv/cctv_git (where we'll be doing the work) | |
| cd ~/codecasts.tv | |
| git clone --bare ~/codecasts.tv/cctv_git #This creates a new directory, ~/codecasts.tv/cctv_git.git, that acts like a remote | |
| # Now we will clone the remote to our 'local' box as Harry (developer #1) | |
| mkdir harry | |
| cd harry | |
| git clone ~/codecasts.tv/cctv_git.git |
| <!-- PLACE IN .xbmc/userdata/keymaps/Keymap.xml --> | |
| <!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC --> | |
| <!-- The <global> section is a fall through - they will only be used if the button is not --> | |
| <!-- used in the current window's section. Note that there is only handling --> | |
| <!-- for a single action per button at this stage. --> | |
| <!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox --> | |
| <!-- gamepads. --> | |
| <!-- The format is: --> | |
| <!-- <device> --> |
| mkdir cctv_git #Make directory | |
| cd cctv_git #change to newly crated directory | |
| git init #Create git repository in directory | |
| #Configure Git | |
| git config --global user.name “CodeCasts.tv” | |
| git config --global user.email [email protected] | |
| git config --list #just to confirm that our settings were applied | |
| #Create A README file with some contents |
| # First you need to install the gem | |
| # gem install chronic | |
| # You should see it say "1 gem installed" when it's done | |
| # | |
| # Then open IRB | |
| require 'chronic' | |
| Chronic.parse(‘tomorrow’) # => tomorrow's date | |
| Chronic.parse(‘2 weeks from next monday’) # => date that's 2 weeks from the next monday |