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 <Cocoa/Cocoa.h> | |
extern void ButtonClick(void); | |
@interface GoPasser : NSObject | |
+ (void)buttonClick:(id)sender; // this should call the cgo function defined in main.go | |
@end | |
void StartApp(void); |
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
THIS_FILE := $(lastword $(MAKEFILE_LIST)) | |
TEX := xelatex -shell-escape -interaction=nonstopmode -file-line-error | |
PRE := $(wildcard ./*.tex) | |
OBJ := $(PRE:%.tex=%.pdf) | |
BIB := $(wildcard ./*.bib) | |
BIB_OBJ := $(BIB:%.bib=%.bbl) |
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 | |
# install_vpn.sh | |
# automatically install and configure a VPN -- IKEv2 over IPsec | |
# using strongswan and iptables | |
# Author: Lucas E Morales <[email protected]> | |
# | |
# tested on Ubuntu 16.04 and arch 2018-07 | |
# | |
# huge thanks to Namo's tutorial: | |
# https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-16-04 |
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/sh | |
# zbalance: quickly get your zcash addresses (taddr and zaddr) and their balances. | |
# REQUIRES zcash-cli (https://z.cash) AND jq (https://stedolan.github.io/jq) | |
zaddr_withbalance () { | |
while read a | |
do echo $(zcash-cli z_getbalance $a) $a | |
done | |
} |
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/sh | |
# REQUIRES jq (https://stedolan.github.io/jq) | |
# AND ccminer (https://github.com/tpruvot/ccminer) | |
# AND eqm (https://github.com/nicehash/nheqminer) | |
# (all in PATH) | |
# | |
# This program auto-switches miners for best profit. | |
# | |
# Copyright 2017 Lucas Morales <[email protected]> | |
# |
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/sh | |
# REQUIRES jq (https://stedolan.github.io/jq) | |
# | |
# This program, nh-profit, checks your current profitability from nicehash. | |
# | |
# Copyright 2017 Lucas Morales <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
[package] | |
name = "kcov_rustdoc" | |
version = "0.0.1" | |
[dependencies] | |
redhook = "0.1" | |
libc = "0.2" | |
[lib] | |
name = "kcov_rustdoc" |
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
default: | |
gcc -g -c foo.c -o foo.o | |
ar rcs libfoo.a foo.o | |
rustc main.rs -L . |
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
/target | |
**/*.rs.bk | |
*.cmi | |
*.cmx | |
*.o |