Skip to content

Instantly share code, notes, and snippets.


Arti Zirk artizirk

View GitHub Profile
artizirk / wvdial.conf
Created May 27, 2014
wvdial config for public ip
View wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB1
Init1 = ATZ
Init2 = ATQ0 V1 E1 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP",""
Stupid Mode = True
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = wap
artizirk /
Created Jun 5, 2014
Function Annotations test
#!/usr/bin/env python3
# Function Annotations test
from pprint import pprint
def greet(name: "User to greet", greeting: "Greeting to use" = "Hello") -> "String with the greeting":
return greeting + " " + name
View rover.ino
int ees_mootor_parem_enable = 12;
int ees_mootor_parem_pwm = 3;
int ees_mootor_vasak_enable = 8;
int ees_mootor_vasak_pwm = 11;
int taga_mootor_parem_enable = 7;
int taga_mootor_parem_pwm = 9;
int taga_mootor_vasak_enable = 5;
int taga_mootor_vasak_pwm = 10;
int kaugus_parem = A2;
int kaugus_vasak = A0;
artizirk /
Created Feb 21, 2015
blink a led at tartu raspberry pi workshop
artizirk /
Last active Aug 29, 2015
tries to maximize powersave and minimaze heat output so that my DELL Vostro 3360 laptop wouldn't burn my legs when i have it on my lap.
echo "max powersave"
# kill the stupid spinning hdd that i dont use most of the time anyway
sudo hdparm -y /dev/sda
# set some bits on the cpu to make it use less power
sudo x86_energy_perf_policy powersave
# set some more bits on the cpu to disable turbo boost, one command per core
sudo wrmsr -p0 0x1a0 0x4000850089
sudo wrmsr -p1 0x1a0 0x4000850089
sudo wrmsr -p2 0x1a0 0x4000850089
artizirk /
Created Sep 10, 2015
CodeClub: Python - 9. September
#!/usr/bin/env python3
# This is a simple 4 banger calculator
Version 2, December 2004
Copyright (C) 2015 Arti Zirk <>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
artizirk /
Last active Sep 10, 2015
IT sotsiaalsed, eetilised ja professionaalsed aspektid - Praktikum 1 - lehel olevate küsimuste vastused
  1. Ühe levinud arvutitüübi üks mudel sai oma nime looja tütre eesnime järgi. Mis nimi see oli ja kes oli tüdruku isa?

    Arvuti nimi oli Lisa ja arvuti looja oli Steve Jobs source

  2. Püha Isidorus Sevillast oli VI-VII sajandil elanud hispaania õpetlane ja piiskop. Mis seos on tal aga IT-ga?

    ¿ source

artizirk /
Created Sep 10, 2015
CodeClub: Python - 2. September
#!/usr/bin/env python3
fast_code = r"""
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
//#define MAX 10000
artizirk /
Created Mar 22, 2013
This is a Google Cloud Messaging demo server written in Python it needs a and GCM libs to work
# Google Cloud Messaging demo server in python
import web # lib
from gcm import GCM #
urls = (
'/gcm-demo', 'index',
'/gcm-demo/register', 'register',
'/gcm-demo/unregister', 'unregister'
artizirk / lego_nxt_sumo_bot.nxc
Last active Dec 15, 2015
code for our school lego nxt sumo bots
View lego_nxt_sumo_bot.nxc
// sumobot with two sonic sensors
#define START_WAIT 5000 // ms
#define jooksu_aeg 500 // how much to back away from white line (ms)
#define mootor OUT_BC // motors
#define light_threshold 40 // light threshold
#define otsingu_kaugus 30 // distance for enemy
#define attack_speed 100 //
#define left_light_port IN_4 // vasak ees valgus
#define right_light_port IN_1 // parem ees valgus
You can’t perform that action at this time.