This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">I'm awesome</tspan> | |
</label> | |
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|2,90|16,87"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "[`date`][Start] Host alive tester" | |
host_ip_addr="192.168.10.100" | |
alive_history=() | |
alive_history_size=5 | |
while true; do | |
#ping -nqc1 $host_ip_addr &> /dev/null #ping not good because cant set timeout time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
####################### | |
# | |
# Auto scroll while holding down mouse side buttons | |
# | |
# | |
from pymouse import PyMouse | |
from pymouse import PyMouseEvent | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from time import sleep | |
from flask import Flask, redirect, request | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
head="""<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">""" | |
style="""<style></style>""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import dbus | |
from gi.repository import GObject as gobject | |
from enum import Enum | |
from dbus.mainloop.glib import DBusGMainLoop | |
class MMModemState(Enum): | |
MM_MODEM_STATE_FAILED = -1 | |
MM_MODEM_STATE_UNKNOWN = 0 | |
MM_MODEM_STATE_INITIALIZING = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Working Huawei E3372h-153 SETPORT mappings | |
replacing A1,A2 with FF turns off need for usb_modeswitch | |
AT^SETPORT="A1,A2;12,1,16,A1,A2" | |
^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4, | |
AT^SETPORT="A1,A2;1,12,16,A1,A2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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 |