Skip to content

Instantly share code, notes, and snippets.

View cinterloper's full-sized avatar

Grant Haywood cinterloper

  • Internet
View GitHub Profile
@cinterloper
cinterloper / func dump
Last active February 8, 2017 17:52
binspect-json
[C]:-1: terra StringFromGo :: {} -> &int8 = <extern>
{
[type] => [C]:-1: terra StringFromGo :: {} -> &int8 = <extern>
{
[parameters] => {} -> &int8 {
}
[isvararg] => false
[returntype] => {} -> &int8 {
[C]:-1: terra StringFromGo :: {} -> &int8 = <extern>
{
[type] => [C]:-1: terra StringFromGo :: {} -> &int8 = <extern>
{
[parameters] => {} -> &int8 {
}
[isvararg] => false
[returntype] => {} -> &int8 {
[type] => &int8 {
[signed] => true
@cinterloper
cinterloper / mypub
Last active January 31, 2017 04:19
mypub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxayWbFxviELEG6r/8Nc+ezafrtN70ZPR/EnjpaIbpa g@localhost
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCuruMQ2VNSnptOXd3lENf5HWaoWq8wGbpg0hKYe6I/yAYtN4lW+kkVMxi+QqSA7QpUbTw9E5ygwR2Vlc7jUqOSvkD323g0BI/s+BSGFBms2bZaNFDI5TYwayTV1eT6cVLsognJFYxtY5W2wtDIp6FO3Kfu2wAc+ofnniJGG+6wg8VOv2ek9kndCuin0Xbis3qAORAXtzwIVMcIFn+WCsGZnZkDE7a5unHq/OkrwcO5HY535nJS07rfTudhjyI3Rg2xMSSkNAGwPwpgO/BMQylifrsu/2QsLyt6okHY28zWFN3XNij1y01N/qWznLOYIODgykj0rCV6xoR+9BGyZls7 g@unit01
g@g-skull:~$ ssh admin@172.17.0.7 -p 2244
Password authentication
Password:
Welcome to cintershell
% whoami
admin
%
cat ~/.ssh/*.pub | ssh $TGTUSR@$TGTHOST "cat >> ~/.ssh/authorized_keys"
StateMachineConfig<State, Trigger> workflowConfig
StateMachine<State, Trigger> workflow
void configureWorkflow() {
workflowConfig = new StateMachineConfig<>();
workflowConfig.configure(State.Start)
.permit(Trigger.Called,State.GatherInfo)
workflowConfig.configure(State.GatherInfo)
.permit(Trigger.InfoGathered, State.StoreInfo)
.permit(Trigger.Exit,State.Failed)
workflowConfig.configure(State.StoreInfo)
each node has its own queue on the shared-system
a node subscribes to the queues of all its peers
each node should pick replication taksks out of its peer's queues, round-robin style
if/when it sucessfuly replicates the object, the sink should send a message to the source, informing it of the sucess
if/when it fails, the sink should send a message to the source, so the source can re-queue the job
@cinterloper
cinterloper / bash examples
Last active July 28, 2022 15:41
bash examples
Start:
https://github.com/cinterloper/Xe/blob/master/src/main/resources/runner.sh
https://github.com/cinterloper/bashutils/blob/master/testvars.sh
Intermediate:
https://github.com/mattly/bork
https://github.com/alphapapa/bucket
https://github.com/sstephenson/bats
https://projects.archlinux.org/archboot.git/tree/usr/bin/archboot-allinone.sh
https://github.com/zfsonlinux/zfs-auto-snapshot/blob/master/src/zfs-auto-snapshot.sh
docker / notary
Notary is a Docker project that allows anyone to have trust over arbitrary collections of data
Starred 11 days ago
ncarlier / webhookd
A very simple webhook server launching shell scripts.
Starred 17 days ago