Skip to content

Instantly share code, notes, and snippets.

View DariuszO's full-sized avatar
💭
𝕀 𝕞𝕒𝕪 𝕓𝕖 𝕤𝕝𝕠𝕨 𝕥𝕠 𝕣𝕖𝕤𝕡𝕠𝕟𝕕

Dariusz Ochota DariuszO

💭
𝕀 𝕞𝕒𝕪 𝕓𝕖 𝕤𝕝𝕠𝕨 𝕥𝕠 𝕣𝕖𝕤𝕡𝕠𝕟𝕕
View GitHub Profile

Keybase proof

I hereby claim:

  • I am CavityGap on github.
  • I am deadjim (https://keybase.io/deadjim) on keybase.
  • I have a public key whose fingerprint is 55C8 1D84 09AF BF34 F52A 5112 3857 9B38 1132 D831

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1Jq5rVHjxdEXa5y8wVD9KDapXvg9eazbP https://explorer.blockstack.org/address/1Jq5rVHjxdEXa5y8wVD9KDapXvg9eazbP
@DariuszO
DariuszO / offline-site.sh
Created February 23, 2018 23:35 — forked from kremalicious/offline-site.sh
Download complete website for offline viewing with wget
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
www.website.org
#!/usr/bin/python
# Author: Liraz Siri <liraz@turnkeylinux.org>
# list origin of packages
import re
import subprocess
class Policy:
def __init__(self, name):
self.name = name
#!/usr/bin/perl -w
# mysqltuner.pl - Version 1.2.0
# High Performance MySQL Tuning Script
# Copyright (C) 2006-2011 Major Hayden - major@mhtx.net
#
# For the latest updates, please visit http://mysqltuner.com/
# Git repository available at http://github.com/rackerhacker/MySQLTuner-perl
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@DariuszO
DariuszO / tor-hidden-service-host.sh
Created July 16, 2019 19:43 — forked from kremalicious/tor-hidden-service-host.sh
Install and run Tor hidden service on pretty much anything
##
# for Ubuntu 16.04 Xenial Xerus
##
######################################
# INITIAL SERVER SETUP & HARDENING
######################################
# most VPS providers give you root user from the start
ssh root@1.2.3.4
@DariuszO
DariuszO / sshkey.sh
Created December 4, 2019 12:14 — forked from kremalicious/sshkey.sh
Add local public ssh key to server
cat ~/.ssh/id_rsa.pub | ssh user@hostname -i ~/.ssh/key.key 'cat >> .ssh/authorized_keys'
@DariuszO
DariuszO / create-gpg-key.sh
Created December 4, 2019 12:14 — forked from kremalicious/create-gpg-key.sh
Create & publish new GPG key incl. revocation certs
# Generate key pair and revocation certificate.
gpg --gen-key
gpg --output revoke.asc --gen-revoke <key-id>
# Export ASCII copy of the public key
gpg --export --armor <key-id> > pubkey.asc
# Publish the public key
gpg --send-keys <key-id>
@DariuszO
DariuszO / default.conf
Created December 4, 2019 12:16 — forked from kremalicious/default.conf
nginx default site config
##
# /etc/nginx/conf.d/default.conf
##
server {
listen 80;
server_name localhost 1.2.3.4;
location / {
root /var/www/default/html;
@DariuszO
DariuszO / nginx.conf
Created December 4, 2019 12:17 — forked from kremalicious/nginx.conf
nginx config
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}