$ rails g model User
belongs_to
has_one
#!/bin/bash | |
## | |
# MySQL DB dump to Git commit | |
# | |
# Dumps the specified mysql database to the given location and commits it and | |
# the previous database to the Git repository. | |
# | |
# It is assumed you have already setup the Git respository to only be the | |
# a checkout of the database backup location |
package main | |
import ( | |
"fmt" | |
) | |
type Node struct { | |
Value int | |
} |
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
Remuxing | |
Why Remux Blu-rays? | |
-You use MPC-HC (or similar DShow players) and standard filters for playback. You can also use better quality renderers like Haali, EVR and madVR. | |
-You get the ease of playback of a re-encode without the quality loss. A double click off the .mkv will start the movie - no annoying warnings, loading screens, previews and setup menus. | |
-You don't have to deal with horribly bloated, unstable and expensive PowerDVD or Arcsoft playback software. | |
-You don't have to mess with ISO creation, correct BD folder structure, UDF and SPTD drivers, and image mounting every time you want to watch a movie. | |
-You never have to worry about the region code setting of a disc. | |
-You never have to worry about HDCP or PAP content protection. | |
-You never have to worry about your software player downsampling your audio - get full bit-depth and frequency resolution, 24bit/96kHz or higher, not 16/48. |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
📆 June 4-5, 2015
🌏 Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
💁 Ping me @cheeaun on Twitter if you found some awesome stuff for #rdrc2015. This gist will be updated whenever there's new stuff.
🕙 Previously, on RedDotRubyConf...
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WordCamp Lancaster Badge Demo</title> | |
<style> | |
html, | |
body { | |
float: none; | |
} | |
.attendee { |
#!/usr/bin/env python | |
# Takes the path to a local file and formats it using GitHub's raw Markdown API, | |
# then converts the returned HTML to their table format. | |
from pathlib import Path | |
from sys import argv | |
import requests # $ pip install requests | |