Skip to content

Instantly share code, notes, and snippets.

View asachs's full-sized avatar

Andre Sachs asachs

View GitHub Profile
require 'rubygems'
require 'bundler/setup'
require 'typhoeus'
require 'json'
require 'uri'
class User
class << self; attr_accessor :base_uri end
def self.find_by_name(name)
require "janky"
require "janky/chat_service/hipchat"
Janky.setup(ENV)
run Janky.app
# dependant on values supplied in amount_paid
context "for membership_term and member_paid" do
subject { Factory.build(:member) }
let(:amount_paid) { ANNUAL_MEMBERSHIP_COST }
it {
should allow_value(ANNUAL_MEMBERSHIP_COST).for(:amount_paid)
assert subject.membership_term == 1
}
end
@asachs
asachs / gist:7aa434c7eca124377e06
Created October 21, 2014 15:28
prep for chroot
mount /dev/vda1 /mnt
cd /mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
----total-cpu-usage---- -dsk/total- --net/eth0- ---paging-- ----swap--- ----swap--- ----most-expensive----
usr sys idl wai hiq siq| read writ| recv send| in out | used free| used free| i/o process
4 2 88 7 0 0| 0 301M| 66B 466B| 0 0 | 0 32G| 0 32G|gzip 2208k 226M
1 1 94 5 0 0| 0 354M| 132B 580B| 0 0 | 0 32G| 0 32G|gzip 2368k 244M
1 1 93 5 0 0| 0 361M| 66B 1122B| 0 0 | 0 32G| 0 32G|gzip 2208k 233M
1 1 91 7 0 0| 0 197M|1614B 1984B| 0 0 | 0 32G| 0 32G|gzip 2464k 253M
1 0 89 10 0 0| 0 224M| 66B 130B| 0 0 | 0 32G| 0 32G|gzip 2368k 240M
2 1 87 10 0 0| 0 195M| 786B 1274B| 0 0 | 0 32G| 0 32G|gzip 5088k 226M
@asachs
asachs / peimap1 result
Last active December 11, 2023 06:22
peimap1 and uiemap1 copy results
Direct> sel stat pnum=4 det;
===============================================================================
SELECT STATISTICS
===============================================================================
EVENT RECORD Record Id => QCEX
Process Name => sample Stat Log Date => 02/17/2015
Process Number => 4 Stat Log Time => 15:20:06
Submitter Class =>
Submitter Id => cdadmin@VALUEADD
@asachs
asachs / designer.html
Created March 31, 2015 12:00
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>

Keybase proof

I hereby claim:

  • I am asachs on github.
  • I am asachs (https://keybase.io/asachs) on keybase.
  • I have a public key whose fingerprint is 488D D93F AE87 B52B C483 6708 D21C 349F E5AD 6B73

To claim this, I am signing this object:

sw1.jnb2#show run
Building configuration...
Current configuration : 2668 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
@asachs
asachs / gist:1967fe44fe4167ebad65
Created May 22, 2015 16:13
waverly switch CatOS
begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#time: Fri May 22 2015, 17:00:10
!
#version 8.3(2)GLX
!
!