Skip to content

Instantly share code, notes, and snippets.

@BruceLEO1969
BruceLEO1969 / ARM EC2 Install Arch Linux ARM.md
Last active January 5, 2023 09:51
ARM EC2 Install Arch Linux ARM

ARM EC2 Install Arch ARM

Preparation

  • Create an ARM EC2 instance
  • Add an extra EBS(Arch EBS) to the EC2 created
  • Create GPT part table for that EBS(Arch EBS) and create at least 300M EFI part

EC2 type and EBS size are all as you wish, for me i choose c6g.large and 60G gp3 extra EBS(Arch EBS).The parted Arch EBS be like:

@BruceLEO1969
BruceLEO1969 / install-driver.sh
Created January 4, 2023 02:53 — forked from ambud/install-driver.sh
AWS ENA Driver Installation
#!/bin/bash
#
# Author: Ambud Sharma
# Purpose: Install AWS ENA driver for Enhanced Networking
#
sudo yum -y install kernel-devel-$(uname -r)
sudo yum -y install gcc git
git clone https://github.com/amzn/amzn-drivers.git
cd amzn-drivers/kernel/linux/ena
@BruceLEO1969
BruceLEO1969 / mount_qcow2.md
Created May 12, 2022 07:54 — 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
@BruceLEO1969
BruceLEO1969 / jenkins-dump-credentials.groovy
Created January 8, 2022 03:19 — forked from timja/jenkins-dump-credentials.groovy
Dump jenkins credentials - use in script console
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.impl.*
// def item = Jenkins.instance.getItem("your-folder")
@BruceLEO1969
BruceLEO1969 / installing_virt_manager.md
Created September 25, 2019 07:27 — forked from diffficult/installing_virt_manager.md
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@BruceLEO1969
BruceLEO1969 / install-proxychains-ng.sh
Created November 24, 2017 03:55 — forked from ifduyue/install-proxychains-ng.sh
Install proxychains-ng on Centos
#!/bin/sh
# Usage:
# wget -O- https://gist.githubusercontent.com/ifduyue/dea03b4e139c5758ca114770027cf65c/raw/install-proxychains-ng.sh | sudo bash -s
set -eu
version=4.12
wget https://github.com/rofl0r/proxychains-ng/archive/v$version.tar.gz
tar xf v$version.tar.gz
@BruceLEO1969
BruceLEO1969 / 00README.md
Created August 20, 2017 07:38 — forked from natefoo/00README.md
Linux Distribution Detection

Distribution Detection

I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.

How you can help

If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:

  • The contents of /etc/os-release, if it exists
@BruceLEO1969
BruceLEO1969 / smbloris.c
Created August 6, 2017 09:06 — forked from marcan/smbloris.c
SMBLoris attack proof of concept
/* SMBLoris attack proof-of-concept
*
* Copyright 2017 Hector Martin "marcan" <marcan@marcan.st>
*
* Licensed under the terms of the 2-clause BSD license.
*
* This is a proof of concept of a publicly disclosed vulnerability.
* Please do not go around randomly DoSing people with it.
*
* Tips: do not use your local IP as source, or if you do, use iptables to block
@BruceLEO1969
BruceLEO1969 / tmux-cheatsheet.markdown
Created September 19, 2016 17:50 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname