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
use aes::Aes256; | |
use block_modes::block_padding::Pkcs7; | |
use block_modes::{BlockMode, Cbc}; | |
use bls_signatures::{AggregateSignature, Signature}; | |
use pallier::Pallier; | |
use rand::Rng; | |
use rug::Integer; | |
type Aes256Cbc = Cbc<Aes256, Pkcs7>; |
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
#!/bin/bash | |
sudo apt install git bc bison flex libssl-dev make | |
git clone --depth=1 https://github.com/raspberrypi/linux | |
# Launch dmesg -wT and connect the modem to iBlocker (via USB cable) | |
# Result: usb 1-1.3: New USB device found, idVendor=1782, idProduct=4d12, bcdDevice= 0.00 | |
# Check that below line in L610_linux_driver.sh contains correct idVendor and idProduct |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
source $HOME/.cargo/env | |
rustup default nightly | |
# linux build, with openssl | |
sudo apt update && sudo apt install pkg-config libssl-dev | |
cargo build --release --lib |
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
#!/bin/bash | |
rm commandlinetools-*.zip | |
sudo apt-get install libc6-dev-i386 lib32z1 openjdk-8-jdk build-essential --yes | |
wget https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip | |
unzip commandlinetools-linux-8092744_latest.zip | |
export ANDROID_HOME=$HOME/Android |
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
pragma solidity ^0.4.21; | |
contract SimpleERC20Token { | |
// Track how many tokens are owned by each address. | |
mapping (address => uint256) public balanceOf; | |
string public name = "Simple ERC20 Token"; | |
string public symbol = "SET"; | |
uint8 public decimals = 18; |
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
#!/bin/bash | |
# initialise and configure a pyproject.toml file (similar to Cargo.toml) | |
poetry init | |
# python's cryptography package requires openssl and rust | |
brew install openssl rust | |
env LDFLAGS="-L$(brew --prefix [email protected])/lib" CFLAGS="-I$(brew --prefix [email protected])/include" poetry add cryptography | |
# then the rest |
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 feedbackMachine = Machine({ | |
id: 'feedback', | |
initial: 'question', | |
states: { | |
question: { | |
on: { | |
CLICK_GOOD: 'thanks', | |
CLICK_BAD: 'form', | |
CLOSE: 'closed' | |
} |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
defaults: &defaults | |
docker: | |
- image: circleci/node:12.14 | |
working_directory: ~/tmp/circleci-now | |
version: 2 | |
jobs: | |
checkout: | |
<<: *defaults | |
steps: |
NewerOlder