Skip to content

Instantly share code, notes, and snippets.

Nomas Prime nomasprime

Block or report user

Report or block nomasprime

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mkmf.log
"gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
View keybase.md

Keybase proof

I hereby claim:

  • I am nomasprime on github.
  • I am nomasprime (https://keybase.io/nomasprime) on keybase.
  • I have a public key ASDnp_e2ruweEI30Gnk6tF3gGwyjsM_wfMiimoLwy7d6Bwo

To claim this, I am signing this object:

View some_class.rb
class SomeClass
def initialize(current_account, form, request)
@form = form
@request = request
end
def call
return broadcast(:invalid, form) if invalid?
auth_header ||= user.create_new_auth_token
View keybase.md

Keybase proof

I hereby claim:

  • I am habitullence on github.
  • I am habitullence (https://keybase.io/habitullence) on keybase.
  • I have a public key ASD_YWPVLvCfYbmBwaw9Zb4hB2BB-IQpCmc9s6BI4Kfubgo

To claim this, I am signing this object:

View assessment_assignment.json
{
"$schema": "http://json-schema.org/draft-04/hyper-schema",
"title": "Assessment Assignment",
"stability": "prototype",
"strictProperties": true,
"type": [
"object"
],
"definitions": {
"id": { "$ref": "#/definitions/resource/properties/id" }
View ruby.rb
proxied_servers = ['10.0.15.20:8484', '10.0.15.21:8484']
proxied_servers.rotate!(proxied_servers.find_index(response.headers['X-Upstream-Addr']))
View lb.yml
---
common_packages_install:
- avahi-daemon
nginx_site_configs:
app:
servers:
- listen: 80
locations:
- access_log: "{{ nginx_log_dir }}/app/access.log upstream"
proxy_pass: "http://app"
View main.yml
---
nginx:
events_params:
- worker_connections {% if nginx.max_clients is defined %}{{ nginx.max_clients }}{% else %}512{% endif %}
group: www-data
http_params:
- sendfile on
- tcp_nopush on
- tcp_nodelay on
- keepalive_timeout 65
View main.yml
---
- name: goenv checkout repo
git:
dest: "{{ ansible_env.HOME }}/.goenv"
repo: "https://github.com/syndbg/goenv.git"
- name: goenv update profile
lineinfile:
create: yes
dest: "{{ ansible_env.HOME }}/.bash_profile"
View admin_bound.rb
class AdminBound < ActiveRecord::Base
scope :sites, -> {
where(arel_table[:iso].eq('BRA').and(Arel::Nodes::NamedFunction.new('st_contains', [arel_table[:geom], Site.arel_table[:lonlat]]))).project(Site.arel_table[Arel.star])
}
end
You can’t perform that action at this time.