This file contains 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
network={ | |
ssid="secure-unifr" | |
key_mgmt=WPA-EAP | |
auth_alg=OPEN | |
eap=PEAP | |
identity="<identity>" | |
password="<password>" | |
ca_cert="/etc/certs/QuoVadis_Root_CA_2.pem" | |
phase2="MSCHAPV2" | |
} |
This file contains 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
.PHONY: all libcryptoauth libateccssl libpkcs11 dist install clean | |
OPTIONS := ATCAPRINTF ATCA_HAL_I2C ENGINE_DYNAMIC_SUPPORT USE_ECCX08 ECC_DEBUG | |
SYSTEM_INCLUDES := /usr/include | |
# Define helpful macros for interacting with the specific environment | |
BACK2SLASH = $(subst \,/,$(1)) | |
SLASH2BACK = $(subst /,\,$(1)) | |
FIND = $(shell find $(abspath $(1)) -name $(2)) |
This file contains 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
const {Action, Event, Property, Thing, WebThingServer} = require('./index'); | |
const uuidv4 = require('uuid/v4'); | |
var Thingy = require('thingy52'); | |
var Color = require('color'); | |
console.log('Reading Thingy environment sensors!'); | |
class ButtonEvent extends Event { | |
constructor(thing, state) { |
This file contains 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
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>ch.unifr.diuf.softeng</groupId> | |
<artifactId>exercise0-duranda-gremaupa</artifactId> | |
<version>1</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<java.version>11</java.version> | |
</properties> |
This file contains 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 litex.tools.litex_client import RemoteClient | |
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver | |
wb = RemoteClient(csr_csv="test/csr.csv") | |
wb.open() | |
analyzer = LiteScopeAnalyzerDriver(wb.regs, "analyzer", debug=True, config_csv="test/analyzer.csv") | |
analyzer.configure_subsampler(1) ## increase this to "skip" cycles, e.g. subsample | |
analyzer.configure_group(0) |
This file contains 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
# Makefile borrowed from https://github.com/cliffordwolf/icestorm/blob/master/examples/icestick/Makefile | |
# | |
# The following license is from the icestorm project and specifically applies to this file only: | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
This file contains 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
{ | |
"wifi": { | |
"ssid": "eduroam", | |
"eap": { | |
"method": "PEAP", | |
"ca_cert": "/certs/QuoVadis_Root_CA_2.pem", | |
"username": "MY_USERNAME", | |
"password": "MY_PASSWORD" | |
} | |
}, |
This file contains 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 <stdint.h> //for int8_t | |
#include <wmmintrin.h> //for intrinsics for AES-NI | |
//compile using gcc and following arguments: -g;-O0;-Wall;-msse2;-msse;-march=native;-maes | |
//internal stuff | |
//macros | |
#define DO_ENC_BLOCK(m,k) \ | |
do{\ | |
m = _mm_xor_si128 (m, k[ 0]); \ |
This file contains 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
[ | |
{ | |
"id": "aa418b47.80ad28", | |
"type": "subflow", | |
"name": "thingy subflow", | |
"info": "", | |
"category": "thingy", | |
"in": [ | |
{ | |
"x": 400, |
This file contains 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
#!/usr/bin/env python3 | |
import subprocess | |
tags = { | |
'[email protected]': 'tagname' | |
} | |
fetch = subprocess.run(['git', 'fetch', 'origin', 'master'], stderr=subprocess.DEVNULL) | |
assert(fetch.returncode == 0) |
OlderNewer