This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //go:build ignore | |
| // imds-cert-chain verifies the current Azure VM's IMDS attestation signature | |
| // using only the certificate material embedded in coderd/azureidentity. It | |
| // fetches the signed attested document from IMDS unless a base64 PKCS7 | |
| // signature is supplied, replaces the PKCS7 certificate set with the IMDS | |
| // signer plus azureidentity.Certificates, trusts only azureidentity.Roots, and | |
| // prints the verified chain common names. A failure means Coder would need a | |
| // certificate that is not currently in those embedded slices. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A comment server for the FB react.js tutorial at: | |
| // https://facebook.github.io/react/docs/tutorial.html | |
| package main | |
| import ( | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/csv" | |
| "os" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var wrapped_postComment_onSuccess = Dsq.Templates.postComment_onSuccess; | |
| Dsq.Templates.postComment_onSuccess = function() { | |
| try { | |
| var YWATracker = YWA.getTracker("10001299646087"); | |
| YWATracker.setAction("02"); | |
| YWATracker.submit_action(); | |
| } catch(e) {} | |
| if ($('disqus-share').checked) { | |
| var activity = new RPXNOW.Social.Activity("Share your comment", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import urllib | |
| from django.utils import simplejson | |
| from google.appengine.ext import webapp | |
| from google.appengine.ext.webapp.util import run_wsgi_app | |
| from google.appengine.ext import db | |
| from google.appengine.api import urlfetch | |
| from google.appengine.ext.webapp import template |