Skip to content

Instantly share code, notes, and snippets.

@ChimeraCoder
ChimeraCoder / veneur-emit.yaml
Created April 5, 2018 00:02
Basic veneur-emit example with credentials
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: veneur-emit
labels:
app: veneur-emit
spec:
minReadySeconds: 10
replicas: 1
template:
@ChimeraCoder
ChimeraCoder / veneur-emit.yaml
Created April 4, 2018 23:59
Basic veneur-emit example
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: veneur-emit
labels:
app: veneur-emit
spec:
minReadySeconds: 10
replicas: 1
template:
@ChimeraCoder
ChimeraCoder / gist:9380006
Created March 6, 2014 00:48
Prevent websites from disabling developer console in Chrome
Object.defineProperty(window, 'console', {configurable: false, value: window.console})
sub new {
my ($class) = @_;
my @owned_files = ();
#The 'shared' files are the files that a user can read but does not own
my @shared_files = ();
my $self = {
#$[0] is the class
_name => $_[1],
@ChimeraCoder
ChimeraCoder / gist:8395008
Created January 13, 2014 05:00
Sample systemd script
[Unit]
Description=A phpbb-like bulletin board in Go
[Service]
ExecStart=/home/stevenleeg/go/bin/gobb
Restart=on-abort
[Install]
WantedBy=multi-user.target
insertRow <- function(existingDF, newrow, r) {
existingDF[seq(r+1,nrow(existingDF)+1),] <- existingDF[seq(r,nrow(existingDF)),]
existingDF[r,] <- newrow
existingDF
}
removeDuplicates <- function(data){
result<- masterdata[1,]
> p <- ggplot(data=masterdata8, aes(certainty, nanoseconds, colour="red")) +
> geom_point() +
> geom_point(data=masterdata4, colour="blue") +
> geom_point(data=masterdata1, colour="green")
> head(masterdata8)
certainty benchmark iterations nanoseconds
1 10 BenchmarkSafePrimes-8 10 13465462805
@ChimeraCoder
ChimeraCoder / blogger-no-js.sh
Created December 5, 2013 02:49
Read Blogger without Javascript
# how to fetch a blogger.com blog
# without the gratuitous javascript
# usage: nameofthisfile blog.whatever.com > html_file
#! /bin/sh
case $# in
1)
{
a=${1%%/*}
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 876 bytes | 0 bytes/s, done.
Total 8 (delta 5), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Go app detected
-----> Using go1.1.2
-----> Running: go get -tags heroku ./...
# cd .; bzr branch https://launchpad.net/mgo/v2 /tmp/build_c43062fc-8c32-437f-9bfd-4ccc909fde22/.heroku/g/src/labix.org/v2/mgo
package github.com/gorilla/pat
@ChimeraCoder
ChimeraCoder / NumPy.ipynb
Created November 16, 2013 21:33
Note book from github.com/ChimeraCoder/intro-to-numpy-and-scipy. Details and license on the main repository. Linked here for http://nbviewer.ipython.org/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.