Skip to content

Instantly share code, notes, and snippets.

View keikun17's full-sized avatar

Cakey | Buddy Magsipoc keikun17

View GitHub Profile
@keikun17
keikun17 / gist:a7012f896794bdfa2e4b
Created June 8, 2015 11:11
Heroes 199.108.62.157
Valerian@Valerian ~ $ traceroute 199.108.62.157
traceroute to 199.108.62.157 (199.108.62.157), 64 hops max, 52 byte packets
1 snakekillsvoldemort (10.126.45.249) 1.969 ms 1.195 ms 1.064 ms
2 192.168.1.1 (192.168.1.1) 1.473 ms 1.574 ms 1.613 ms
3 * * 112.209.96.1.pldt.net (112.209.96.1) 37.128 ms
4 119.93.255.213 (119.93.255.213) 18.981 ms 20.316 ms 22.769 ms
5 210.213.132.34.static.pldt.net (210.213.132.34) 18.948 ms
210.213.132.38.static.pldt.net (210.213.132.38) 52.616 ms
210.213.132.34.static.pldt.net (210.213.132.34) 28.564 ms
6 * 210.213.128.21.static.pldt.net (210.213.128.21) 21.094 ms 31.121 ms
@keikun17
keikun17 / gist:e48b595d1ba09fc0cc6e
Last active August 29, 2015 14:22
Heroes Valerian@Valerian 182.162.116.1
Valerian@Valerian ~ $ traceroute 182.162.116.1
traceroute to 182.162.116.1 (182.162.116.1), 64 hops max, 52 byte packets
1 snakekillsvoldemort (10.126.45.249) 1.513 ms 1.251 ms 0.993 ms
2 192.168.1.1 (192.168.1.1) 1.546 ms 1.423 ms 1.639 ms
3 112.209.96.1.pldt.net (112.209.96.1) 19.285 ms 18.684 ms 18.459 ms
4 119.93.255.213 (119.93.255.213) 17.439 ms 18.331 ms 18.596 ms
5 210.213.132.38.static.pldt.net (210.213.132.38) 18.687 ms
210.213.132.34.static.pldt.net (210.213.132.34) 31.026 ms
210.213.132.38.static.pldt.net (210.213.132.38) 23.660 ms
6 210.213.128.37.static.pldt.net (210.213.128.37) 26.479 ms
@keikun17
keikun17 / decorator.rb
Created February 24, 2015 17:26
decorator
# from https://github.com/keikun17/yapos/blob/master/app/decorators/decorator.rb
require 'delegate'
class Decorator < SimpleDelegator
include ActionView::Helpers
include ActionView::Context
include Rails.application.routes.url_helpers
def self.decorate_collection(arr)
@keikun17
keikun17 / gist:57bc5a3bafbdb714288b
Last active August 29, 2015 14:08
markdown backtick test

code snip something here gets cut pet


code snipp something here gets cut et

@keikun17
keikun17 / mech_spec.rb
Last active August 29, 2015 14:06
Why i love Rspec 3.1
require 'spec_helper'
describe MWO::Mech do
describe '.all', vcr: {cassette_name: 'all_mechs'} do
subject { described_class.all }
let (:hbk4g) { an_object_having_attributes(name: 'hbk-4g', max_armor: 338, mech_id: 1, total_tons: 50, weight_class: 'Medium') }
let (:com3a) { an_object_having_attributes(name: 'com-3a', max_armor: 178, mech_id: 6, total_tons: 25, weight_class: 'Light') }
it "returns a collection of mechs collection" do
expect(subject).to include(an_instance_of(described_class))
@keikun17
keikun17 / keybase.proof.text
Created April 2, 2014 08:19
keybase proof
### Keybase proof
I hereby claim:
* I am keikun17 on github.
* I am keikun17 (https://keybase.io/keikun17) on keybase.
* I have a public key whose fingerprint is 7E4A 77B1 BD56 9D36 7E9B 023E 12E0 DDC3 E0EF 53BF
To claim this, I am signing this object:
@keikun17
keikun17 / gist:8819331
Last active August 29, 2015 13:56
2014 PC
I sold my iMac (2011 model 27",i5, AMD 6970 video card, 12GB RAM) for PHP 45,000 and am building a new PC.
here are the specs and current price nila from online price checks :
Video Card : - AMD Sapphire R9-290X 4GB GDDR5 - PHP 24,850 Dynaquest Website price
CPU : - i5 4670 3.4-3.8 haswell - PHP 9,950 Dynaquest Website price
RAM : - Corsair Vengeance 16GB quad 1600 CL9 - PHP 6,500 Dynaquest Website price
MOBO : - Asrock Fatal1ty Z87 Killer (LGA 1150) - PHP 6,750 Dynaquest website price
HD : Western Digital 2tb - PHP 4,800 - Dynaquest Website price
Case : Generic - PHP 3,000 - budget