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 / sw.sh
Created August 24, 2011 15:19
Build and test spielwiese
#! /bin/bash
#Script for building and testing spielwiese
#
# NOTE: a bit out of date :(
#
# TODO: try to use "make distcheck"
# TODO: make sw.sh - available via wget, e.g.
# wget "http://git.berlios.de/cgi-bin/cgit.cgi/singular/plain/sw.sh?h=scripts" -O sw.sh -a /dev/null
@malex984
malex984 / chg.git.author.sh
Created August 25, 2011 19:57
Correct wrong author and emails in git commits
#!/bin/sh
# 1st argument - ID of the starting commit
export UU="Oleksandr Motsak"
export EE="http://goo.gl/mcpzY"
git filter-branch -f --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
/* Taken almost verbatim from some GIMP tutorial */
#include <gtk/gtk.h>
int main( int argc, char *argv[] )
{
GtkWidget *window, *image;
if(argc > 1 && argv[1] != NU
@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
@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 / 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 / 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 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 / 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 / .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