Skip to content

Instantly share code, notes, and snippets.

View nomasprime's full-sized avatar

Rick Jones nomasprime

View GitHub Profile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
betamax = "*"
pytest = "*"
lockan = {editable = true, path = "."}
"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 */

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:

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

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:

@nomasprime
nomasprime / assessment_assignment.json
Last active February 8, 2017 18:06
PRMD with JSON-API
{
"$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" }
proxied_servers = ['10.0.15.20:8484', '10.0.15.21:8484']
proxied_servers.rotate!(proxied_servers.find_index(response.headers['X-Upstream-Addr']))
---
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"
---
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
---
- 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"