This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
import re | |
from easysnmp import Session | |
from pprint import pprint | |
from struct import pack, unpack | |
printer_ip = "10.0.0.222" | |
session = Session(hostname=printer_ip, community="public", version=1, timeout=1) | |
password = [74, 54] |
#!/usr/bin/env escript | |
% -*- mode: erlang -*- | |
main([BeamFile]) -> | |
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]), | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
# | |
# Copyright (C) 2009-2014 OpenWrt.org | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=mdk4 |
#!/bin/sh | |
HOST=http://192.168.10.2 | |
KERNEL=openwrt-ipq40xx-generic-nokia_ac220i-squashfs-uImage.itb | |
ROOTFS=openwrt-ipq40xx-generic-nokia_ac220i-squashfs-rootfs.sqsh | |
HASH=sha256sums | |
echo "Going to /tmp" | |
cd /tmp |
#EXTINF:-1 tvg-logo="https://www.hieuhien.vn/wp-content/uploads/2019/01/hieu-hien-vn-logo.png",HieuHien.vn update 31/8/2019 | |
http://hjyjrvmlsk.vcdn.com.vn/hls/elgfjdh/index.m3u8 | |
#EXTINF:-1 tvg-logo="https://www.hieuhien.vn/wp-content/uploads/2019/01/hieu-hien-vn-logo.png",Fanpage: facebook.com/HieuHien.vn | |
http://hjyjrvmlsk.vcdn.com.vn/hls/elgfjdh/index.m3u8 | |
#EXTINF:-1 tvg-logo="https://www.hieuhien.vn/wp-content/uploads/2019/01/hieu-hien-vn-logo.png",Cộng đồng HieuHien.vn: facebook.com/Groups/HieuHien.vn | |
http://hjyjrvmlsk.vcdn.com.vn/hls/elgfjdh/index.m3u8 | |
#EXTINF:-1 group-title="ĐỊA PHƯƠNG" tvg-logo="http://gardenmedia.vn/kcfinder/upload/images/Quang-Cao-Truyen-Hinh-Vinh-Long-1(1).jpg",Vĩnh Long 1 HD | |
http://htv-drm-live-cdn.fptplay.net/CDN-FPT02/THVL1-HD-1080p/chunks.m3u8 |
#!/bin/bash | |
# btrfs-undelete | |
# Copyright (C) 2013 Jörg Walter <[email protected]> | |
# This program is free software; you can redistribute it and/or modify it under | |
# the term of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or any later version. | |
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
echo |
mat_mipmaptextures 0 | |
cl_detailfade 0 | |
cl_detaildist 0 | |
r_drawdetailprops 0 | |
mp_decals 0 | |
r_decals 0 | |
cl_phys_props_enable 0 | |
cl_phys_props_max 0 | |
props_break_max_pieces 0 |
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
cfupdater
files to /usr/local/bin
-v4
to cfupdater
in the following systemd service unit.-v6
to cfupdater
in the following systemd service unit.-dualstack
to cfupdater
in the following systemd service unit.chmod +x /usr/local/bin/cfupdater
/etc/systemd/system/
, the cfupdate.service
is shown as an example.set OPENSSL_CONF=D:\Program Files\OpenSSL-Win64\bin\openssl.cfg | |
set PATH=D:\Program Files\OpenSSL-Win64\bin | |
echo "%1" | |
openssl pkcs12 -in "%1" -nocerts -nodes -out "FINAL_key.pem" | |
openssl rsa -in "FINAL_key.pem" -outform PVK -pvk-strong -out "FINAL.pvk" | |
openssl pkcs12 -in "%1" -nokeys -nodes -out "FINAL_cert.pem" | |
openssl crl2pkcs7 -nocrl -certfile "FINAL_cert.pem" -outform DER -out "FINAL.spc" | |
del "FINAL_key.pem" |