Skip to content

Instantly share code, notes, and snippets.

View iamajvillalobos's full-sized avatar

AJ Villalobos iamajvillalobos

View GitHub Profile
@iamajvillalobos
iamajvillalobos / sublime_scopes.list
Created May 29, 2017 04:09 — forked from meetwudi/sublime_scopes.list
Sublime Text snippet scope list
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CSS: source.css
D: source.d
Diff: source.diff
@iamajvillalobos
iamajvillalobos / PC Build 2017
Last active May 18, 2017 06:07
PC Build 2017
Case: Fractal Design Node 202 + 450w integra psu = 7,720
GPU: Zotac GTX 1060 Mini 6gb = 12,300 (9,000 2nd hand)
CPU: Intel Core i5 7500 = 10,000
Motherboard: Gigabyte H270N = 7,340
RAM: HyperX Fury 2133mhz 2x8gb = 6,740
SSD: Samsung 850 Evo 512gb = 8,370
Fan: Cryorig C7 = 1,570
Total: 54,040
Usage:
@iamajvillalobos
iamajvillalobos / Sublime Text 3 Build 3103 License Key - CRACK
Created September 20, 2016 02:06
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
require 'rails_helper'
module Transformation::MultiFamily
describe TransformApartmentComplex, '.execute' do
it "puts an apartment_complex_transformer in the context" do
location_urn = { 'my-location-urn' }
etl_config = create_multi_family_etl_config
apartment_complex_transformer = double(ApartmentComplexTransformer)
ctx = create_default_ctx_hash(etl_config)
class Robot
NAME_LETTERS = ("A".."Z").to_a
NAME_NUMBERS = (100..999).to_a
attr_accessor :name
def initialize
reset
end
{
"data": [
{
"id": "2",
"type": "group-events",
"links": {
"self": "http://localhost:3000/api/group-events/2"
},
"attributes": {
"name": "Summer event",
@iamajvillalobos
iamajvillalobos / controller_test_sample.rb
Created May 24, 2016 14:08
jsonapi controller sample test
require 'rails_helper'
RSpec.describe UsersController, type: :controller do
describe 'GET #index' do
it "populates an array of all users" do
christa = FactoryGirl.create(:user, name: "Christa")
jayne = FactoryGirl.create(:user, name: "Jayne")
get "index", nil, { 'Content-Type' => 'application/vnd.api+json' }
[Tue Mar 01 21:13:21.562121 2016] [suexec:notice] [pid 10231] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 01 21:13:21.580131 2016] [so:warn] [pid 10231] AH01574: module ruid2_module is already loaded, skipping
[Tue Mar 01 21:13:21.582695 2016] [auth_digest:notice] [pid 10231] AH01757: generating secret for digest authentication ...
[Tue Mar 01 21:13:21.584844 2016] [:notice] [pid 10231] mod_ruid2/0.9.8 enabled
[Tue Mar 01 21:13:21.613079 2016] [mpm_prefork:notice] [pid 10231] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 configured -- resuming normal operations
[Tue Mar 01 21:13:21.613111 2016] [core:notice] [pid 10231] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Mar 01 21:13:25.036787 2016] [mpm_prefork:notice] [pid 10231] AH00171: Graceful restart requested, doing restart
[Tue Mar 01 21:13:25.127153 2016] [so:warn] [pid 10231] AH01574: module ruid2_module is already loaded, skipping
[Tue Mar 01 21:13:25.130232 2016] [auth_digest:noti
ActiveRecord::Schema.define(version: 20160229132308) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`
# by default. You can change it below and use your own secret key.
# config.secret_key = 'e44305eb520e921351e80da67a0a64529e246bd2190955be57811a05da7faf90a36c7c48932bb54ab061f52ec7a95abcd04dffbe7f4720d9296077a671439978'