Skip to content

Instantly share code, notes, and snippets.

View malex984's full-sized avatar
😎
looking forward to my new job

Oleksandr Motsak malex984

😎
looking forward to my new job
View GitHub Profile
@malex984
malex984 / hb_kiosk.sh
Created February 13, 2018 12:55
Run given kiosk launcher script with `--preload` option in order to preload heartbeat with specified (in run-time) default parameters.
#! /bin/bash
#set -v
#set -x
ARGS="$@"
#HB: SET VARS...
export HB_HOST="${HB_HOST:-127.0.0.1}"
export HB_PORT="${HB_PORT:-8888}"
@malex984
malex984 / query_test.sh
Created February 7, 2018 21:13
deep query testing for hilbert server-side
#!/bin/bash
export HILBERT_CFG="${HILBERT_CFG:-$@}"
export HILBERT_CFG="${HILBERT_CFG:-Hilbert.yml}"
export HILBERT_SERVER_CONFIG_PATH="${HILBERT_SERVER_CONFIG_PATH:-${HILBERT_CFG}}"
export HILBERT="${HILBERT:-../../tools/hilbert}"
export DUMP_BASE="$(basename $HILBERT_SERVER_CONFIG_PATH).dump"
@malex984
malex984 / Gmail Default Shortcuts.md
Last active September 6, 2017 10:26
Gmail Default Shortcuts
Action Key(s)
Compose c
Compose in a tab d
Search mail /
Back to threadlist u
Newer conversation k
Older conversation j
Select conversation x
Toggle star/Rotate among superstars s
@malex984
malex984 / .ssh_config
Last active December 6, 2016 04:00
Configuration in YAML
Host *
ForwardX11=no
StrictHostKeyChecking=no
BatchMode=yes
PasswordAuthentication=no
UserKnownHostsFile=/dev/null
LogLevel=quiet
ConnectionAttempts=3
ConnectTimeout=10
ControlMaster=no
@malex984
malex984 / hb_client_options.html
Created July 13, 2016 01:16
HB Client in JS with optional parameters
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h2>HB client in JS (with optional parameters):</h2>
<a href="hb_client.html"><h3>Default <tt>hb_client.html</tt> (WITHOUT parameters!)</h3></a>
@malex984
malex984 / singular_julia4.log
Created January 26, 2016 14:01
Testing Nemo+Singular Wrappers
$ cat my.nemo.log
Singular Resources info: argv[0] : /home/malex/.julia/v0.5/Nemo/local/bin/Singular
SearchPath: /home/malex/.julia/v0.5/Nemo/local/bin/../share/singular/LIB:/home/malex/.julia/v0.5/Nemo/local/bin/../share/factory:/home/malex/.julia/v0.5/Nemo/local/bin/../libexec/singular/MOD:/home/malex/.julia/v0.4/Nemo/local/libexec/singular/MOD:/home/malex/.julia/v0.5/Nemo/local/bin
Singular : /home/malex/.julia/v0.5/Nemo/local/bin/Singular
BinDir : /home/malex/.julia/v0.5/Nemo/local/bin
ProcDir : /home/malex/.julia/v0.5/Nemo/local/bin/../libexec/singular/MOD:/home/malex/.julia/v0.4/Nemo/local/libexec/singular/MOD
RootDir : /home/malex/.julia/v0.5/Nemo/local/bin/..
DataDir : /home/malex/.julia/v0.5/Nemo/local/bin/../share
@malex984
malex984 / heartbeat2.py
Last active January 26, 2016 23:11
1st functional Heartbeat server / client
#!/usr/bin/python
# import sched, time
from time import time
from time import sleep
from random import randint
from threading import Timer
from urllib2 import urlopen
@malex984
malex984 / singular_julia4.log
Created January 5, 2016 13:47
Julia Tests Output
# git ID: ec4ef03f8e203a074fdf556f059bccff2aeecf53
:~/.julia/v0.4/Nemo$ $HOME/J/julia -e 'Pkg.test("Nemo")'
INFO: Testing Nemo
Welcome to Nemo version 0.4.0
Nemo comes with absolutely no warranty whatsoever
@malex984
malex984 / singular_julia3.log
Last active January 4, 2016 00:36
Julia Output3
#### git id: e1a2049aabd3440127fe074f23b1f491440601cd
#### $HOME/J/julia -e 'Pkg.test("Nemo")'
INFO: Testing Nemo
Welcome to Nemo version 0.4.0
Nemo comes with absolutely no warranty whatsoever
Singular unique rings & fields will use context-less implementation, right? true
@malex984
malex984 / heartbeat.py
Last active December 17, 2015 01:56
POC for HeartBeat Server/Client
#!/usr/bin/python
### Heartbeat:
### webgl: add to render loop (initiate)
### multithread / asynchron sending (should not block the application)
### non-blocking i/o
### how often: 1 beat per second (or less)?
### TCPIP connection: leave open?
###
### GET request