Skip to content

Instantly share code, notes, and snippets.

@ianamunoz
ianamunoz / powersoftau-verification
Last active February 12, 2019 13:06
Output from powersoftau verification
# On an AMD EPYC 7301 16-Core Processor x2 so 64 threads at 2.2Ghz. ~40gb ram utilization with >100gb ram caching files.
user@machine1:~/Documents/projects/ebfull/powersoftau$ ls
Cargo.lock Cargo.toml COPYRIGHT LICENSE-APACHE LICENSE-MIT params README.md src transcript
user@machine1:~/Documents/projects/ebfull/powersoftau$ time cargo run --release --bin verify --featu
res u128-support
Updating crates.io index
Downloaded crossbeam v0.3.2
Downloaded byteorder v1.2.2
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
@ianamunoz
ianamunoz / cpld.bash
Created July 30, 2018 21:15
File that walks ldd and finds all dependent libraries and binaries
# License : GNU GPLv3
#
function useage()
{
cat << EOU
Useage: bash $0 <path to the binary> <path to copy the dependencies>
EOU
exit 1
}

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@ianamunoz
ianamunoz / mpc.sh
Created June 13, 2018 14:12
Run Sapling MPC on OSX
I have the feeling it has only been tested on Linux. I use macOS and are seeing issues with the code.
MacBook-Pro-2011:~ rex$ git clone https://github.com/zcash-hackworks/sapling-mpc.git
Cloning into 'sapling-mpc'...
remote: Counting objects: 35, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 35 (delta 16), reused 31 (delta 12), pack-reused 0
Unpacking objects: 100% (35/35), done.
MacBook-Pro-2011:~ rex$ cd sapling-mpc/
MacBook-Pro-2011:sapling-mpc rex$ mv /Users/rex/Downloads/params.dms /Users/rex/sapling-mpc
@ianamunoz
ianamunoz / install-buildbot.ps1
Created May 31, 2018 13:23 — forked from peter-b/install-buildbot.ps1
PowerShell script for installing a buildbot worker on Windows
# PowerShell script for installing BuildBot 0.8.12 on Windows Server 2016
# Datacenter Edition
# For full explanation of everything in this script, see:
# http://blog.peter-b.co.uk/2017/02/deploying-buildbot-workers-on-windows.html
# Copyright (C) 2017 LiveCode Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ianamunoz
ianamunoz / .block
Created March 6, 2018 19:25 — forked from baramuyu/.block
D3.js v4 Gantt Chart basic example.
license: mit
#create new rpm root directory
mkdir /data/centos7-1611-root
export rpm_root=/data/centos7-1611-root
export rpm_repo=http://mirror.centos.org/altarch/7/os/ppc64le
#initialize rpm root
rpm --root ${rpm_root} --initdb
#install centos release rpm package
rpm --root ${rpm_root} -ivh ${rpm_repo}/Packages/centos-release-7-4.1708.el7.centos.ppc64le.rpm
@ianamunoz
ianamunoz / activate.csh
Created April 19, 2017 22:00 — forked from mikecharles/activate.csh
Activate and deactivate a conda environment in C Shell
#!/bin/csh
# Get the name of this script
set script_name = `basename $0`
# Get arguments
if ( $#argv < 1 ) then
echo ""
echo "Usage: source $script_name <CONDAENV>"
exit 2
#!/bin/bash
file=/usr/lib/python2.7/site-packages/firewall/core/fw_zone.py
grep '^\(\s*\)\#zone_transaction.add_post(ifcfg_set_zone_of_interface, "", interface)$' ${file} &> /dev/null
if [ ${?} -eq 0 ]; then
echo "Patch already applied. Exiting."
exit 0
else