Skip to content

Instantly share code, notes, and snippets.

[notroot@aaa-shelob03 ~]$ whoami
notroot
[notroot@aaa-shelob03 ~]$ \curl -sSL https://get.rvm.io | sudo bash -s stable
[sudo] password for notroot:
Downloading https://github.com/wayneeseguin/rvm/archive/1.26.9.tar.gz
Downloading https://github.com/wayneeseguin/rvm/releases/download/1.26.9/1.26.9.tar.gz.asc
gpg: Signature made Wed 07 Jan 2015 05:55:10 AM CST using RSA key ID BF04FF17
gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
@a2f0
a2f0 / gist:0be3e80db9b21ce7b989
Created February 1, 2015 15:44
module dependency resolution
angular.module('myApp', ['ngRoute', 'config']) ...
.controller('myController',['$scope', 'myApp', 'CONFIG', function($scope, myApp, CONFIG){
console.log("CONFIG " + CONFIG);
}
@a2f0
a2f0 / gist:c1d8f3536ade65e8eb35
Last active August 29, 2015 14:18
schema.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@a2f0
a2f0 / gist:fbe39890a3578f169ad7
Created July 30, 2015 15:10
braintree tokenizecard js
client.tokenizeCard({
number: $scope.ngTransaction.$transaction.cc,
cardholderName: cardholdername,
// You can use either expirationDate
expirationDate: "10/20",
// or expirationMonth and expirationYear
//expirationMonth: "10",
//expirationYear: "2015",
// CVV if required
//cvv: "832",
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client]
"DisabledByDefault"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]
[TRACE ] Inserted key into loop_instance_map id 54955112 for key ('/etc/salt/pki/master', 'server.cri.uchicago.edu_master', 'tcp://127.0.0.1:4506', 'clear') and process 29714
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'somemaster.cri.uchicago.edu_master', 'tcp://127.0.0.1:4506', 'clear')
[TRACE ] Inserted key into loop_instance_map id 54955112 for key ('/etc/salt/pki/master', 'cri-nacl.cri.uchicago.edu_master', 'tcp://127.0.0.1:4506', 'clear') and process 29714
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
[DEBUG ] LazyLoaded nested.output
$ free -m
total used free shared buffers cached
Mem: 1869 1734 135 0 91 1032
-/+ buffers/cache: 610 1259
Swap: 3999 21 3978
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VG00-lv_root
196608 12446 184162 7% /
FilesMatch:
this: \.css\.gz$
ForceType: text/css
Header: set Content-Encoding gzip
FilesMatch:
this: \.js\.gz$
ForceType: text/javascript
Header: set Content-Encoding gzip