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
multiuser on | |
acladd user1 | |
acladd user2 | |
acladd user3 | |
password none |
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
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
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="../notification-elements/notification-alert.html"> | |
<polymer-element name="my-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
cross :: Fractional a => [a] -> [a] -> [a] | |
cross u v | |
| length u == 3 && length v == 3 = | |
[u !! 1 * v !! 2 - u !! 2 * v !! 1, | |
u !! 2 * v !! 0 - u !! 0 * v !! 2, | |
u !! 0 * v !! 1 - u !! 1 * v !! 0] | |
| otherwise = error "Cross product only supported for 3d vectors" | |
dot :: Fractional a => [a] -> [a] -> a | |
dot us vs = sum (zipWith (*) us vs) |
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/env ruby | |
class State | |
attr_accessor :layers, :iterations | |
attr_accessor :success_rate, :time | |
def self.csv_headers | |
"layers,iterations,success_rate,time" | |
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
#!/usr/bin/env python3 | |
import sys | |
import os | |
if len(sys.argv) < 2: | |
print("Usage: %s [stream_name | http://stream_url]" % sys.argv[0]) | |
sys.exit(2) | |
stream_url = sys.argv[1] | |
if not stream_url.startswith('http://') and not stream_url.startswith('https://'): |
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/env ruby | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
ENV["BUNDLE_IGNORE_CONFIG"] = 'true' | |
install_only = ARGV.to_a.map(&:to_sym) | |
install_only = [:host] if install_only.empty? | |
require 'bundler' | |
Bundler.configure |
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
# ... | |
def load_file(file); eval(File.read(file), binding, file); end | |
load_file '/etc/gitlab/gitlab-custom.rb' |
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/bash | |
pvcreate /dev/sda3 | |
vgextend localhost-vg /dev/sda3 | |
lvextend /dev/localhost-vg/root -l +100%FREE | |
resize2fs /dev/mapper/localhost--vg-root |
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
run findfdt | |
run bootcmd_dhcp |