Skip to content

Instantly share code, notes, and snippets.

View msabwat's full-sized avatar

b1ue msabwat

View GitHub Profile
@prasathmani
prasathmani / GoDaddy-acme.sh
Created February 16, 2020 13:33
LetsEncrypt SSL cert on GoDaddy Shared Hosting using acme.sh
pre required SSH access
## Download and install acme.sh
acme.sh is a full implementation of a LetsEncrypt client but that doesn't depend on Python/pip/virtualenv/etc, and that doesn't require root -- exactly what we need, since we don't have root an a shared GoDaddy server, and we can't install new software outside of our home directory.
`curl https://get.acme.sh | sh`
Now log out and SSH back in so acme.sh's install is complete in every way (include the Bash alias).
##Get GoDaddy API Key
Visit `https://developer.godaddy.com/keys/`
@n4sm
n4sm / open_self_linux_nasm.asm
Last active July 25, 2020 20:16
Just an assembly code which opens itself when it is mapped and executed, in nasm (in order to do for example self mofifying code)
; https://github.com/n4sm/AD_1DA/tree/master/AD_1DA
BITS 64
section .text
global _start
_start:
mov r13, 0x1111111111111111

Tig: Splitting a single-file commit the easy way

The problem

A common issue during a branch rebase:

  • merging multiple commits is pretty easy with the squash action
  • splitting a commit in smaller ones can be a pain in the *ss, especially if the changes are inside a common file.

An example of "to split" commit:

@nmarley
nmarley / README.md
Last active June 7, 2024 19:45
Go / C++ bindings example

Go / C++ bindings example

This is an example of Go code calling to a C++ library with a C wrapper.

Build

go build  # this only ensures it compiles
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active July 13, 2024 08:35
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@kripken
kripken / README.markdown
Last active May 17, 2023 23:12
WebAssembly pthreads + memory growth + JS

WebAssembly pthreads + memory growth + JS

Background

JavaScript can access a wasm memory, using

var buffer = wasmMemory.buffer;
@agronick
agronick / vlctv.sh
Created December 3, 2018 23:49
VLC Linux with Chromecast: Solution to error "gnutls tls client error: Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected. "
#!/bin/bash
# On my machine VLC fails to connect to chromecast. If I specify the IP it fails to connect because of certificate errors. I can
# manually download the certificate but it is only valid for 2 days. This little script gets it all working.
# Set your ip address below and call this script with the filename.
CHROMECAST_IP=192.168.1.153
gnutls-cli --save-cert=chromecast.pem --insecure $CHROMECAST_IP:8009
mkdir -p ~/.local/share/vlc/certs
mv chromecast.pem ~/.local/share/vlc/certs
@noelbundick
noelbundick / LICENSE
Last active May 24, 2024 09:10
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active July 8, 2024 13:24
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active July 1, 2024 21:55
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel