Skip to content

Instantly share code, notes, and snippets.

View tcz001's full-sized avatar
💡
bingo!

Torchz tcz001

💡
bingo!
View GitHub Profile
@tcz001
tcz001 / README.md
Last active December 29, 2020 03:20
Synestia on rpi4

install docker

https://www.docker.com/

download & install docker desktop for mac

run docker prebuilt image

cd SynestiaOS/Docker/
-----BEGIN CERTIFICATE-----
MIIFozCCA4ugAwIBAgIUdu7kaLx69viI32cPVy5v3avleU8wDQYJKoZIhvcNAQEL
BQAwYDELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMREwDwYDVQQHDAhDYW1wYmVs
bDEPMA0GA1UECgwGSHVtYW5hMSAwHgYJKoZIhvcNAQkBFhFmamlhbmdAaHVtYW5h
LmNvbTAgFw0xOTA5MTExOTA1NDdaGA8yMTE3MDMwMTE5MDU0N1owYDELMAkGA1UE
BhMCVVMxCzAJBgNVBAgMAkNBMREwDwYDVQQHDAhDYW1wYmVsbDEPMA0GA1UECgwG
SHVtYW5hMSAwHgYJKoZIhvcNAQkBFhFmamlhbmdAaHVtYW5hLmNvbTCCAiIwDQYJ
KoZIhvcNAQEBBQADggIPADCCAgoCggIBAMjQco+MvvdCHrjgu7Q6HgVCfb/4yTNf
oJBkylF+X+d2f9UWJtbHvxMbrseaVYQyMhq3L7SOF18QYV99iw47LCWs6gfuyPLH
6+8JnbPZ+hcBO3QqUIrTJ+t2delG/vPxwI9lLux4/jziBwZSUTLDjF9izVAQmFiM
@tcz001
tcz001 / dh
Created August 23, 2019 06:23
dh
gg大华固件地址:
链接: https://pan.baidu.com/s/1ZoMNn38Pi9Z4NENsYDLaYA 提取码: yp2g
@tcz001
tcz001 / README.md
Last active November 26, 2021 10:13
run alpine linux on qemu on windows
  1. create a folder in C:\ as workspace (because download folder is a remote volumn, it won't be accessable in powershell/cmd.exe)
  2. download and unzip qemu pre-built binaries.
  3. download alpine-extended-x86_64 iso cdrom.
  4. use qemu-img.exe to create a disk image: qemu-img create hd.img 10G.
  5. download and run start.bat to execute qemu, it will boot from an alpine iso and mount an disk we just created.
  6. login use root, then run setup-alpine in command line, choose us timezone and keyboard layout, setup your root passwd, type enters until:
  • enable openssh service for later usage.
  • when asked "which disk would you like to use?" enter "sda".
  • when asked "How would you like to use it?"
https://fantorchz.blob.core.windows.net/qemu/qemu.zip

Keybase proof

I hereby claim:

  • I am tcz001 on github.
  • I am tcz001 (https://keybase.io/tcz001) on keybase.
  • I have a public key whose fingerprint is AD26 66C0 65A9 BA60 77B0 2774 E43C 559A C8A0 BC7F

To claim this, I am signing this object:

http://www.vvpool.com/bitcoin-pizza/PKqqbJNxWQx1HMmTQ1ZxoXBWCCKL6RkadJ
@tcz001
tcz001 / lease
Created June 11, 2017 17:00 — forked from anonymous/lease
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.11+commit.68ef5810.js&optimize=undefined&gist=
pragma solidity ^0.4.11;
contract Lease {
uint public value;
address public owner;
address public tenant;
enum State { Created, Locked, Inuse, Inactive }
State public state;
function Lease() payable {
@tcz001
tcz001 / setup.sh
Created December 19, 2016 23:22
nvidia-docker-machine
#!/bin/bash
machine='awsdl'
AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
VPC='vpc-4dcc1228'
echo -n "Wait for a spot instance (y/n)? "
read answer
@tcz001
tcz001 / pow.gif
Last active May 15, 2019 10:51
yubikey
pow.gif