Skip to content

Instantly share code, notes, and snippets.

@SL-RU
SL-RU / sys.c
Created March 5, 2018 19:58
sysinit.c
#define OSC 14745600
#include <stdio.h>
#include <math.h>
typedef struct {
int freq_cclk;
int freq_cco;
int del_usec;
int PSEL;
import os
from mcstatus import MinecraftServer
import time
server = MinecraftServer.lookup("192.168.1.2:25565")
err = 0
def ex():
@SL-RU
SL-RU / dev_ins.py
Last active July 5, 2023 21:10
Disable touchpad when mouse inserted. Wayland
import pyudev
import subprocess
context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
monitor.filter_by(subsystem='usb')
def is_m():
global context
#!/bin/bash
device="PS/2 Generic Mouse"
state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
xinput --disable "$device"
@SL-RU
SL-RU / Tiles Draw
Created October 31, 2016 11:04
PRIVACY POLICY MODEL FOR Tiles Draw
PRIVACY POLICY MODEL FOR MOBILE APPLICATIONS
This privacy policy governs your use of the software application Tiles Draw (“Application”) for mobile devices that was created by . The Application is allowing to draw tiles on the main screen.
What information does the Application obtain and how is it used?
User Provided Information
The Application obtains the information you provide when you download and register the Application. Registration with us is optional. However, please keep in mind that you may not be able to use some of the features offered by the Application unless you register with us.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac