Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
#!/usr/bin/env python | |
import os | |
import time | |
import json | |
import base64 | |
import requests | |
import argparse | |
from base64 import urlsafe_b64decode, b64decode | |
from Crypto.Hash import SHA256, SHA512 |
$ uname -r
# UDEV rules to setup automatic backup upon disk insertion | |
# You can get the discriminant informations with the following command : | |
# udevinfo -a -p $(udevinfo -q path -n /dev/sda) | |
KERNEL=="sd?1", ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="Maxtor", ATTRS{model}=="Basics Portable", RUN+="/root/autobackup.sh %k" |
class City < GeoEntity | |
def self.sti_name | |
3 | |
end | |
end |
==Make RubyMine to run rspec/cucumber with Spork DRb Server | |
I was testing RubyMine 6.3 and encountered a problem when running spec file with Spork DRb Server running at the background. The Rspec test failed with the following error message: | |
no such file to load -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError) | |
RubyMine can run the spec without problem if there's no DRb running. | |
I spent a lot of time researching the topic to fix it and couldn't find an exact solution for the problem. However from the online resources I was able to come out with a way to fix the problem. Basically, you need to tell RubyMine to run spork with load path for the formatter. | |
In RubyMine you can set the Run options for Spork. For RubyMine 6.3, go to menu <b>Run</b>...<b>Edit Configurations</b>..., select <b>Defaults</b>...<b>Spork DRb</b>. Now on the <i>Environment variables</i> add this "<tt>RUBYMINE_HOME=/path/to/your-ruby-mine/</tt>"(ignore the double quote), and on the <i>Ruby arguments</i>, append this to th |
brew install macvim --with-cscope --with-lua --override-system-vim |
(source "melpa" "http://melpa.milkbox.net/packages/") | |
(source "gnu" "http://elpa.gnu.org/packages/") | |
(source "marmalade" "http://marmalade-repo.org/packages/") | |
(depends-on "ac-js2") | |
(depends-on "adaptive-wrap") | |
(depends-on "ag") | |
(depends-on "auto-complete") | |
(depends-on "calfw") | |
(depends-on "cask") |
;; Set the starting position and width and height of Emacs Window | |
(add-to-list 'default-frame-alist '(left . 0)) | |
(add-to-list 'default-frame-alist '(top . 0)) | |
(add-to-list 'default-frame-alist '(height . 45)) | |
(add-to-list 'default-frame-alist '(width . 175)) | |
;; To get rid of Weird color escape sequences in Emacs. | |
;; Instruct Emacs to use emacs term-info not system term info | |
;; http://stackoverflow.com/questions/8918910/weird-character-zsh-in-emacs-terminal | |
(setq system-uses-terminfo nil) |