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
#include <pebble_worker.h> | |
DataLoggingSessionRef data_logger; | |
int num_samples = 1; | |
static void data_handler(AccelData *data, uint32_t samples) { | |
data_logging_log(data_logger, data, samples); | |
} | |
static void worker_init() { |
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
public class Dog { | |
String name; | |
public Dog(String name) { | |
this.name = name; | |
System.out.println("Hello, I'm " + name); | |
} | |
public void bark() { |
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
javascript: (function(){var e=prompt("Enter the prefix for your branch (eg. bug, feature)","feature")||"feature",t=document.getElementsByClassName("js-issue-title")[0].innerText||"my-new-feature";t=t.replace(/\s/g,"-"),t=t.replace(/[^a-zA-Z0-9-]/g,""),t=t.toLowerCase();var r=e+"/"+t;alert("git push origin dev:"+r+" && git checkout -t origin/"+r)}()); |
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 ( | |
"log" | |
"net/http" | |
pp "net/http/pprof" | |
"time" | |
) | |
func main() { |
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
cp id_rsa_mylib ~/.ssh | |
cp id_rsa_mylib.pub ~/.ssh | |
ssh-add ~/.ssh/id_rsa_mylib |
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
ssh-keygen -t rsa -b 4096 -C "user@host or just a 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
FROM golang:1.9 | |
# (other stuff omitted for brevity) | |
# Add your keys to the container | |
COPY ssh /root/.ssh | |
# Start the SSH Agent, add the SSH Key and then ensure our dependencies | |
RUN eval "$(ssh-agent)" && ssh-add /root/.ssh/id_rsa && dep ensure |
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
pipeline: | |
test: | |
image: golang:1.9-alpine | |
pull: true | |
commands: | |
- apk --update add git openssh | |
- go get -u github.com/golang/dep/cmd/dep | |
- cp -R ssh /root/.ssh | |
# We need this or we'll be warned about our private key security. | |
- chmod 0400 /root/.ssh/id_rsa |
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
git ls-remote [email protected]:you/greatlib.git |
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
#!/bin/sh | |
set -e | |
eval "$(ssh-agent)" | |
ssh-add /root/.ssh/id_rsa | |
exec "$@" |
OlderNewer