Skip to content

Instantly share code, notes, and snippets.

@RyuzakiKK
RyuzakiKK / pyialarm.py
Created December 19, 2019 10:29
iAlarm test
import logging
import requests
from bs4 import BeautifulSoup
log = logging.getLogger(__name__)
class IAlarm(object):
"""
@RyuzakiKK
RyuzakiKK / docker-compose.yml
Last active December 11, 2019 20:16
Home Assistant Docker Compose
version: '3'
services:
homeassistant:
image: homeassistant/home-assistant:0.103.0
container_name: home-assistant
volumes:
- ~/docker_files/ha:/config
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
restart: unless-stopped
PrusaSlicer
Version: 2.1.0
Build: PrusaSlicer-2.1.0+UNKNOWN
Operating System: Unix
System Architecture: 64 bit
System Version: Linux 5.3.1-arch1-1-ARCH x86_64
Total RAM size [MB]: 33,692MB
OpenGL installation
GL version: 4.5 (Compatibility Profile) Mesa 19.1.7
@RyuzakiKK
RyuzakiKK / README.md
Created September 11, 2018 09:31
seahorse import from dbus+flatpak test

Run

$ flatpak-builder build-dir org.flatpak.SeaTest.json --force-clean
$ flatpak-builder --run build-dir org.flatpak.SeaTest.json dbus-test.py

GNOME-Keysign - GSoC 2017

Project

The transfer of the keys on GNOME Keysign was limited to the LAN only. This limitation can be a problem when e.g. one user does not have access to a WIFI/Ethernet connection or when the users are connected to an isolated network (like a guest WIFI or an University Intranet).

The goal was to further facilitate the OpenPGP keys signing process on GNOME Keysign. This was achieved by adding the ability to send the keys using Bluetooth and Magic Wormhole. The first allows two near PCs to communicate even if there is no LAN/WAN connectivity; The second allows the communication when two PCs are in a LAN (or isolated LAN) or located remotely.

/usr/bin/python3.6 /opt/pycharm-community/helpers/pycharm/_jb_nosetest_runner.py --path /tmp/py3/gnome-keysign/tests/test_gpgmeh.py
Testing started at 7:05 PM ...
Launching Nosetest with arguments /opt/pycharm-community/helpers/pycharm/_jb_nosetest_runner.py /tmp/py3/gnome-keysign/tests/test_gpgmeh.py in /tmp/py3/gnome-keysign/tests
gpg: keybox '/tmp/tmpvx7wbzga/pubring.kbx' created
gpg: /tmp/tmpvx7wbzga/trustdb.gpg: trustdb created
gpg: key 1D4E64C28F62260A: public key "Bruce Wayne (https://bruce.wayne) <bruce.wayne@waynecorp.com>" imported
gpg: key 1D4E64C28F62260A: secret key imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: secret keys read: 1
@RyuzakiKK
RyuzakiKK / PrintNoteCryptDB.java
Last active May 24, 2017 15:52
Supposed to print NoteCrypt Database. Mostly copy/paste from "notecrypt/utils"
package com.notecrypt.utils;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;