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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="trst-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
# Designed to be included in any server {} block. | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { | |
allow all; | |
log_not_found off; | |
access_log off; |
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
[Unit] | |
Description=Network Connectivity | |
Wants=network.target | |
Before=network.target | |
BindsTo=sys-subsystem-net-devices-lan0.device | |
After=sys-subsystem-net-devices-lan0.device | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes |
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
desc "Irb with DB environment loaded" | |
task :console do | |
require './config/database' | |
require "irb" | |
ARGV.clear | |
IRB.start | |
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
class Some | |
include Mongoid::Document | |
field :some_field | |
has_and_belongs_to_many :habtms | |
def sorted_habtms | |
hbtm_ids.each_with_object([]){|id,a| h = habtms.find(id); a << h} | |
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
# go to saved path if there is one | |
if [[ -f ~/.current_path~ ]]; then | |
cd `cat ~/.current_path~` | |
rm ~/.current_path~ | |
fi |
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/zsh:1> rvm --trace get head | |
+rvm:2> local result current_result | |
+rvm:4> [[ -z 4.3.12 ]] | |
+rvm:10> [[ 3 -gt 0 ]] | |
+rvm:10> next_token=--trace | |
+rvm:10> shift | |
+rvm:12> __rvm_cleanse_variables | |
+__rvm_cleanse_variables:2> __rvm_unset_ruby_variables | |
+__rvm_unset_ruby_variables:3> unset rvm_env_string rvm_ruby_string rvm_ruby_strings rvm_ruby_binary rvm_ruby_gem_home rvm_ruby_gem_path rvm_ruby_home rvm_ruby_interpreter rvm_ruby_irbrc rvm_ruby_log_path rvm_ruby_major_version rvm_ruby_minor_version rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_release_version rvm_ruby_repo_url rvm_ruby_repo_branch rvm_ruby_revision rvm_ruby_selected_flag rvm_ruby_tag rvm_ruby_version rvm_ruby_load_path rvm_ruby_require rvm_head_flag rvm_ruby_package_file rvm_ruby_configure rvm_ruby_name rvm_ruby_url rvm_ruby_global_gems_path rvm_ruby_args rvm_ruby_name rvm_llvm_flag rvm_architectures | |
+__rvm_cleanse_variables:4> [[ 0 -eq 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
git clone git://github.com/mvidner/ruby-dbus.git | |
cd ruby-dbus | |
rake gem | |
# choose your install method rvm gem install|gem install|sudo gem install | |
rvm gem install pkg/ruby-dbus-version.gem |
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
#workflow for staicmatic | |
cd ~/work/electrowerk_static | |
# start webserver | |
staticmatic preview . | |
# work on src/ haml ors sass files | |
# start chrome/firefox any browser and point to http://locahost:3000 | |
# check what you done, if you like it | |
Ctrl C # in terminal where you started the webserver | |
staicmatic build . | |
# builds generated files in site/ directory |
NewerOlder