For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
# Use the sounddevice module | |
# http://python-sounddevice.readthedocs.io/en/0.3.10/ | |
import numpy as np | |
import sounddevice as sd | |
import time | |
# Samples per second | |
sps = 44100 |
Простейшая инструкция по настройке сервера Valheim на Ubuntu 20.04 и полезные ссылки.
Должны быть открыты порты по UDP:
import React, { useState, useEffect } from "react"; | |
import "./styles.css"; | |
const data = [ | |
{ id: 1, name: "Marco" }, | |
{ id: 2, name: "Lincoln" }, | |
{ id: 3, name: "Aya" } | |
]; | |
export default function App() { |
# Temporarily add a normal upstream DNS resolver | |
/ip dns set servers=1.1.1.1,1.0.0.1 | |
# CA certificates extracted from Mozilla | |
/tool fetch url=https://curl.se/ca/cacert.pem | |
# Import the downloaded ca-store (127 certificates) | |
/certificate import file-name=cacert.pem passphrase="" | |
# Set the DoH resolver to cloudflare |
The Brother PTP300BT label maker is intended to be controlled using the official Brother P-Touch Design & Print iOS/Android app. The app has arbitrary limits on what you can print (1 text object and up to 3 preset icons), so I thought it would be a fun challenge to reverse engineer the protocol to print whatever I wanted.
Python code at the bottom if you want to skip the fine details.
Intitially I had a quick peek at the Android APK to see if there was any useful information inside. The code that handles the communication with the printer in Print&Design turned out to be a native library, but the app clearly prepares a bitmap image and passes it to this native library for printing. Bitmaps are definitely something we can work with.
%************************************************************************** | |
% AENG 4400 - Stability & Control | |
% Final Project - Fall 2016 | |
%************************************************************************** | |
% | |
% | |
% | |
% "Will Engineer for coffee" | |
% | |
% ...not kidding. Please send coffee ASAP (Espresso Preferred) |
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
- open
Terminal
, go to the dir :cd /Applications/Beyond Compare.app/Contents/MacOS
- change the name
BCompare
toBCompare.bak
:mv BCompare BCompare.bak
- touch a file name
BCompare
, andchmod a+ux BCompare
:touch BCompare && chmod a+ux BCompare
- open
BCompare
with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |