Skip to content

Instantly share code, notes, and snippets.

View x1ddos's full-sized avatar

alex x1ddos

View GitHub Profile
diff --git src/fido2/ctap.c src/fido2/ctap.c
index 5eb8e72..358d294 100644
--- src/fido2/ctap.c
+++ src/fido2/ctap.c
@@ -4,155 +4,66 @@
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
-#include <inttypes.h>
#include <stdio.h>
diff --git src/fido2/ctap.c src/fido2/ctap.c
index 5eb8e72..3ccb9cb 100644
--- src/fido2/ctap.c
+++ src/fido2/ctap.c
@@ -4,155 +4,113 @@
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
-#include <inttypes.h>
#include <stdio.h>
diff --git py/bitbox02/bitbox02/communication/generated/hww_pb2.py py/bitbox02/bitbox02/communication/generated/hww_pb2.py
index 980d338..8a2aa35 100644
--- py/bitbox02/bitbox02/communication/generated/hww_pb2.py
+++ py/bitbox02/bitbox02/communication/generated/hww_pb2.py
@@ -28,9 +28,9 @@ from . import perform_attestation_pb2 as perform__attestation__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='hww.proto',
- package='',
+ package='shiftcrypto.bitbox02',
@x1ddos
x1ddos / fix-docker-on-osx.sh
Created August 6, 2015 11:13
Fix Docker setup on Mac
# one-off setup
boot2docker down
vboxmanage modifyvm boot2docker-vm \
--natpf1 docker,tcp,127.0.0.1,2376,,2376
boot2docker up
export DOCKER_HOST=tcp://127.0.0.1:2376
@x1ddos
x1ddos / Encbox.md
Created July 21, 2013 16:56 — forked from Tho85/Encbox.md

Build your own private, encrypted, open-source Dropbox-esque sync folder

Prerequisites:

  • One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
  • A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.

Software components used:

  • Unison for file synchronization
  • EncFS for folder encryption
@x1ddos
x1ddos / index.html
Last active December 18, 2015 17:59
AngularJS 1.1.5 + Google Closure Library (just a little) + Closure Compiler (obviously) experiment
<html ng-app="ng-demo-app">
<head>
<title>AngularJS simple app demo</title>
</head>
<body ng-controller="MainCtrl">
<input type="text" ng-model="name" ng-required>
<div>{{name}}</div>
<div ng-controller="ChildCtrl">
<input type="text" ng-model="salut">
<div>{{salutation}}</div>

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@x1ddos
x1ddos / testbed.go
Created October 9, 2012 10:28
App Engine pytestbed for Go
// Usage:
//
// func TestSomething(t *testing.T) {
// testbed.SetUp(app.SetAppengineContext)
// defer testbed.TearDown()
// resp := testbed.DoGet('/handler/that/uses/appengine/apis')
// // do something with resp
// }
package testbed
python_preamble:
- import: base64
- import: re
- import: google.appengine.ext.bulkload.transform
- import: google.appengine.ext.bulkload.bulkloader_wizard
- import: google.appengine.ext.db
- import: google.appengine.api.datastore
- import: google.appengine.api.users
- import: postimport