Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Roman Timashev tmshv

💭
I may be slow to respond.
View GitHub Profile
View keyspub.txt
BEGIN MESSAGE.
rUZRGOrombFV6R2 EOab07kqYqlYrn1 h9XitqF8Zh4n8RW jFq52IIMHFb00re
NiCD4DDAdcp1xyV l5tyoY0PjmvTCKq 6Xr2MZHgg6hEIhb 9tUPzsdC4uezhim
od00DAYi6QC2FFK MYyEhQC7Foa1r64 98egGqjEfx5xt5U 9203LgDBy4xNFEc
qvzKDZ5UfumnDYc 5uGck7ygIPQxcJQ wR8Kz.
END MESSAGE.
View gist:ddeb8b3cf728cd717e184e42f5ceffc2
Verifying my Blockstack ID is secured with the address 1BbH666tAPCPTULP8mv8wj64yeF4dGyREr https://explorer.blockstack.org/address/1BbH666tAPCPTULP8mv8wj64yeF4dGyREr
View keybase.md

Keybase proof

I hereby claim:

  • I am tmshv on github.
  • I am tmshv (https://keybase.io/tmshv) on keybase.
  • I have a public key whose fingerprint is 343B C210 F402 990D C5FD 3FA9 F334 74B9 F79F 15F7

To claim this, I am signing this object:

@tmshv
tmshv / rect.pde
Created May 10, 2016
Rect in Processing
View rect.pde
class Rectangle {
PVector lt;
float width;
float height;
Rectangle(PVector lt, float width, float height){
this.lt = lt;
this.width = width;
this.height = height;
}
View Testtriangle.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
public class Testtriangle {
Rtriangle triangle;
@tmshv
tmshv / letsencrypt-renew
Last active Jan 4, 2016 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
View letsencrypt-renew
#!/bin/bash
web_service='nginx'
if [ "$1" == "" ]; then
echo "[ERROR] you should specify config path as parameter"
exit 1;
else
config_file="$1"
fi
View sketch_151208a_sound_toggle.pde
import processing.sound.*;
class Sound {
SoundFile file;
boolean playing;
Sound(PApplet app, String path){
file = new SoundFile(app, path);
playing = true;
}
@tmshv
tmshv / gh_state.py
Last active Dec 8, 2015
Grasshopper Last State
View gh_state.py
# x is input value with list type
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino
sc.doc = Rhino.RhinoDoc.ActiveDoc
lastValue = rs.GetDocumentData('hello', 'lastState')
currentValue = ','.join(map(str, x))
View sketch_151205a_loopvideo_with_facts.pde
import processing.serial.*;
import processing.video.*;
Serial port;
String portName;
Movie actionMovie;
Movie defaultMovie;
Movie movie;
@tmshv
tmshv / tor_python.py
Last active Dec 8, 2015
Stem usage example
View tor_python.py
import socks
import socket
from stem import Signal
from stem.control import Controller
control_port = 9051
proxy_port = 9050
proxy_host = 'localhost'
tor = Controller.from_port(port=control_port)