Skip to content

Instantly share code, notes, and snippets.

View mr-wolf-gb's full-sized avatar
🏠
Working from home

ʍᴙ.ώoŁƒ mr-wolf-gb

🏠
Working from home
View GitHub Profile
@mr-wolf-gb
mr-wolf-gb / docker_tls_ubuntu_16.04
Created July 10, 2024 11:06 — forked from veuncent/docker_tls_ubuntu_16.04
Setup TLS for Docker (Ubuntu 16.04)
- Create a CA, keys and certificates
- Source: https://docs.docker.com/engine/security/https/
# Create certs dir
mkdir ~/certs
cd ~/certs
# Ca key
openssl genrsa -aes256 -out ca-key.pem 4096
@mr-wolf-gb
mr-wolf-gb / windows_and_office_kms_setup.adoc
Created November 25, 2022 08:16 — forked from jerodg/windows_and_office_kms_setup.adoc
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@mr-wolf-gb
mr-wolf-gb / Email Server (Windows Only).md
Created November 26, 2019 10:57 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener {
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName();
private int previousTotal = 0; // The total number of items in the dataset after the last load
private boolean loading = true; // True if we are still waiting for the last set of data to load.
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
int firstVisibleItem, visibleItemCount, totalItemCount;
@mr-wolf-gb
mr-wolf-gb / set-custom-domain-on-localhost-with-xampp
Created March 28, 2018 19:09 — forked from sudhir600/set-custom-domain-on-localhost-with-xampp
How to add a custom domain name on your localhost using XAMPP. Codes are based on Windows, but Step 2 onward are pretty much applicable on other operating system.
Step 1:
Go to: C:\Windows\System32\Drivers\etc\hosts
And add this to the bottom of the file:
=============
127.0.0.1 your.domain.com
=============
Step 2:
Go to [your XAMPP directory]/apache/conf/httpd-xampp.conf
@mr-wolf-gb
mr-wolf-gb / app.js
Created October 9, 2017 15:35 — forked from clarle/app.js
Short tutorial on how to use Express and node-mysql
// Module dependencies
var express = require('express'),
mysql = require('mysql');
// Application initialization
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
@mr-wolf-gb
mr-wolf-gb / eternalblue_merge_shellcode.py
Created July 6, 2017 07:54 — forked from worawit/eternalblue_merge_shellcode.py
Windows x64 and x86 kernel shellcode for eternalblue exploit
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
import sys
from struct import pack
if len(sys.argv) < 4:
print('Usage: {} sc_x86 sc_x64 sc_out'.format(sys.argv[0]))
sys.exit()
sc_x86 = open(sys.argv[1], 'rb').read()
sc_x64 = open(sys.argv[2], 'rb').read()
@mr-wolf-gb
mr-wolf-gb / readme.md
Created April 30, 2017 22:55 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser