Skip to content

Instantly share code, notes, and snippets.

View daya's full-sized avatar

Daya Sharma daya

View GitHub Profile
@daya
daya / blood_pressure.json
Created November 21, 2019 03:41
blood_pressure
"component": [
{
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "8480-6",
"display": "Systolic blood pressure"
},
{
@daya
daya / form.eex
Created October 18, 2017 21:43
form.eex
<h1>New User</h1>
<%= form_for @changeset, user_path(@conn, :create), fn f -> %>
<div class="form-group">
<%= text_input f, :name, placeholder: "Name", class: "form-control" %>
</div>
<div class="form-group">
<%= text_input f, :username, placeholder: "Username", class: "form-control" %>
</div>
<div class="form-group">
<%= password_input f, :password, placeholder: "Password", class: "form-control" %>
@daya
daya / nginx.conf
Created August 8, 2017 22:30 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [OCA_backup] location [/var/jenkins_home/OCA_backup] doesn't match any of the locations specified by path.repo because this setting is empty
at org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)
while locating org.elasticsearch.repositories.fs.FsRepository
while locating org.elasticsearch.repositories.Repository
2013-03-26 18:29:52 *Tunnelblick: OS X 10.8.2; Tunnelblick 3.3beta21b (build 3114.3185)
2013-03-26 18:29:52 *Tunnelblick: Attempting connection with Sample_Tunnelblick_VPN_Configuration; Set nameserver = 0; not monitoring connection
2013-03-26 18:29:52 *Tunnelblick: /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start Sample_Tunnelblick_VPN_Configuration.tblk 1338 0 0 0 1 49 -atADGNWradsgnw 2.2.1
2013-03-26 18:29:52 *Tunnelblick: openvpnstart message: Loading tun.kext
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
--cd
/Users/dayas/Library/Application Support/Tunnelblick/Configurations/Sample_Tunnelblick_VPN_Configuration.tblk/Contents/Resources
cipherbit: [GC-2013Q1R2] $ ping prd-app-gc-01.internal.cloudbees.com
PING ec2-50-16-167-52.compute-1.amazonaws.com (50.16.167.52): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
^C
--- ec2-50-16-167-52.compute-1.amazonaws.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
cipherbit: [GC-2013Q1R2] $ ping prd-app-gc-02.internal.cloudbees.com
PING ec2-23-22-12-125.compute-1.amazonaws.com (23.22.12.125): 56 data bytes
Request timeout for icmp_seq 0
2013-03-26 17:40:22 *Tunnelblick: OS X 10.8.2; Tunnelblick 3.3beta21b (build 3114.3185)
2013-03-26 17:40:22 *Tunnelblick: Attempting connection with Sample_Tunnelblick_VPN_Configuration; Set nameserver = 1; monitoring connection
2013-03-26 17:40:22 *Tunnelblick: /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start Sample_Tunnelblick_VPN_Configuration.tblk 1337 1 0 0 0 49 -atADGNWradsgnw 2.2.1
2013-03-26 17:40:23 *Tunnelblick: openvpnstart message: Loading tun.kext
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn
--cd
/Users/dayas/Library/Application Support/Tunnelblick/Configurations/Sample_Tunnelblick_VPN_Configuration.tblk/Contents/Resources
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<env:Header>
<n1:SessionHeader xmlns:n1="ns1" env:mustUnderstand="0">
<n1:session>c3ruYhN9lm4VaApVhDvKx_cwRzFRLvqAMkdf15v1MiUCePmmWx-PeJc8_oM5PkhqXTvyDUy_jvpJmcszn_loBHEwKxz6K_KzAyDkm_YK2srszpnZTz1ur49rUfJ8BKxKbWv9iLBVg3Y41gvjHpGHzIChJ3tyhY8E9D1XR7onTKN5hP5AGKmr_hjcaWRmSgT_</n1:session>
</n1:SessionHeader>
</env:Header>
<env:Body>
<n2:create xmlns:n2="http://api.zuora.com/">
<n2:zObjects xmlns:n3="http://object.api.zuora.com/" xsi:type="n3:Payment">
@daya
daya / Debugging Ruby Notes.html
Created September 21, 2011 17:50 — forked from wallace/Debugging Ruby Notes.html
My notes from Aman Gupta's Debugging Ruby webinar by Engine Yard
<a href="http://en.wikipedia.org/wiki/Lsof">lsof</a>
----
show open files
lsof -nPp <pid>
<a href="http://linux.die.net/man/1/strace">strace</a>
------
["4028e48730da40000130dc996d072597", "4028e48730da40000130dc996d6e25ad", "4028e48730da40000130dc99711825ff", "4028e48730da40000130dc99717d2614", "4028e48730da40000130dc99719f2622", "4028e48730da40000130dcb602463f20", "4028e48730da40000130dcb6029b3f34", "4028e48730da40000130dcb602b63f42", "4028e48730da40000130dcb602d23f4f", "4028e48730da40000130dcb608db3fdc", "4028e48730da40000130dcb609213fec", "4028e48730da40000130dcb609373ff7", "4028e48730da40000130dcb6094f4003", "4028e48730da40000130dcb60966400e", "4028e48730da40000130dcb61b87412e", "4028e48730da40000130dcb61bd34142", "4028e48730da40000130dcb61bed4150", "4028e48730da40000130dcb61c07415c", "4028e48730da40000130dcb61c214168", "4028e48730da40000130dcb61c3b4175", "4028e48730da40000130dcbf9b602727", "4028e48730da40000130dcbf9bae2737", "4028e48730da40000130dcbf9bc62742", "4028e48730da40000130dcbf9bdd274d", "4028e48730da40000130dcbf9bf42758", "4028e48730da40000130dcbf9c122763", "4028e48730da40000130dcbf9c2d276f", "4028e48730da40000130dcbf9c43277a", "4028e48730da40