Skip to content

Instantly share code, notes, and snippets.

@riverans
riverans / mount_qcow2.md
Created March 25, 2024 12:18 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

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
@riverans
riverans / bd_post_codes.csv
Created December 27, 2023 10:01 — forked from msrumon/bd_post_codes.csv
Post codes of Bangladesh
code name station district division
1360 Demra Demra Dhaka Dhaka
1362 Matuail Demra Dhaka Dhaka
1361 Sarulia Demra Dhaka Dhaka
1206 Dhaka Cantonment TSO Dhaka Cantt. Dhaka Dhaka
1350 Dhamrai Dhamrai Dhaka Dhaka
1351 Kamalpur Dhamrai Dhaka Dhaka
1209 Jigatala TSO Dhanmondi Dhaka Dhaka
1213 Banani TSO Gulshan Dhaka Dhaka
1212 Gulshan Model Town Gulshan Dhaka Dhaka
@riverans
riverans / README.md
Created December 27, 2023 10:00 — forked from msrumon/README.md
Facebook PHP Source Code from August 2007
@riverans
riverans / unbound.conf
Created December 20, 2023 09:40 — forked from MatthewVance/unbound.conf
Config for running Unbound as a caching DNS forwarder (performance settings optimized for Raspberry Pi 2).
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
@riverans
riverans / facebok ip list
Created November 1, 2023 10:07 — forked from Whitexp/facebok ip list
facebook ip list
31.13.24.0/21
31.13.64.0/19
31.13.64.0/24
31.13.69.0/24
31.13.70.0/24
31.13.71.0/24
31.13.72.0/24
31.13.73.0/24
31.13.75.0/24
31.13.76.0/24
We will gather all URLs next - this may take a short while. Please remain patient.
(1) 3ddesktop -> http://desk3d.sourceforge.net/download.php
(2) 3dpong -> ftp://ftp.billsgames.com/unix/x/3dpong/src/3dpong-0.5.tar.gz
(3) 855resolution -> http://perso.orange.fr/apoirier/
(4) a2png -> http://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.gz
(5) a2ps -> http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz
(6) a52dec -> http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
(7) aalib -> http://sourceforge.net/projects/aa-project/files/aa-lib/1.4rc5/aalib-1.4rc5.tar.gz
(8) aamath -> http://fuse.superglue.se/aamath/aamath-0.3.tar.gz
(9) abcde -> http://abcde.googlecode.com/files/abcde-2.5.3.tar.gz
@riverans
riverans / sqlalchemy_reflect.py
Created September 8, 2020 17:32 — forked from csabatini/sqlalchemy_reflect.py
Auto-create models from an existing db with SQLAlchemy
from __future__ import print_function
from sqlalchemy import *
from sqlalchemy.orm import create_session
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
engine = \
create_engine("postgresql://...")
metadata = MetaData(bind=engine)
@riverans
riverans / gist:3b61ed80ef6cd74a6af944b771eb39bf
Created May 5, 2017 13:02 — forked from mrballcb/gist:74b1955a6d9731e0d2c7
Exim DMARC with configuration to send DMARC reports (but not forensic reports)
1) Exim config
a. Global settings:
dmarc_history_file = /var/spool/exim/dmarc_history.txt
dmarc_tld_file = /etc/exim/opendmarc.tlds
b. Get the tld file (list of valid TLD's) from http://publicsuffix.org/list/
c. Somewhere early in the RCPT ACL I have:
.include_if_exists /etc/exim/dmarc_acl_control.conf
@riverans
riverans / backup-hook.pl
Created June 22, 2016 10:37 — forked from bitcloud/backup-hook.pl
Proxmox backup-hook for Hetzner Server
#!/usr/bin/perl -w
# hook script for vzdump (--script option)
=begin comment
backuphook for Proxmox
renames files so that they include the hostname of the machine
Instructions for Hetzner Backup Server auth via SSH
var _ = require('lodash'),
Waterline = require('waterline'),
path = require('path'),
url = require('url'),
kue = require('kue'),
redis = require('../../node_modules/sails/node_modules/socket.io/node_modules/redis'),
q = require('q')
////////////////////////////////////////////////////////////////////