Skip to content

Instantly share code, notes, and snippets.

View JCookTW's full-sized avatar
🖖
Working Hard!

Jay C JCookTW

🖖
Working Hard!
View GitHub Profile
@JCookTW
JCookTW / listInstalledPackages.sh
Created May 31, 2024 10:06 — forked from thatmaheshrs/listInstalledPackages.sh
This shell script lists ALL the packages installed on any Linux system that uses dpkg for package management such as Debian, Ubuntu, Kubuntu, Xubuntu, Lubuntu, Linux Mint, Kali Linux, Bodhi Linux, etc.
#!/bin/bash
# COPYRIGHT: That Mahesh RS (https://sites.google.com/site/thatmaheshrs)
#
# 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
#!/bin/bash
function run {
# how we want to extract the variables from the commit message.
format_name="--format=%cn"
format_when="--format=%cr"
format_summary="--format=%s"
format_body="--format=%b"
@JCookTW
JCookTW / build.sh
Created May 30, 2024 07:12 — forked from joehillen/build.sh
Build bash scripts with `source` files into a single script.
#!/usr/bin/env bash
#
# https://gist.github.com/joehillen/30f08738c1c3c0ca3e4c754ad33ad2ff
#
# This script inlines 'source' files.
#
# For long scripts, it is nice to be able to break them into multiple files
# to make them easier to work with but still release as a single script.
#
# Inspired by https://stackoverflow.com/a/37533160/334632 with the following enhancements:
@JCookTW
JCookTW / Kali Linux GUI on Termux Android.md
Created May 25, 2024 18:20 — forked from HimDek/Kali Linux GUI on Termux Android.md
This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

How to install Kali Linux GUI Desktop in Android using Termux:

This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

Just Follow these steps to install Kali Linux with XFCE4 Desktop GUI in Android using Termux:

  • Download and install Termux in Android. (Play Store release is no more updated, so is not recommended.)
  • Open Termux and run the following commands:
    apt update && apt install python python2 openssh -y
    
@JCookTW
JCookTW / install.sh
Created May 25, 2024 17:30 — forked from mwt/install.sh
"Universal" Repo Installer for Debian, Ubuntu, Fedora, RHL, OpenSuse, and more.
# This script installs an repository for apt, dnf, yum, or zypper. It expects
# the following eniroment variables.
# GPG_KEY : the gpg key itself
# APP_NAME : the name to use for the repo file and key
# DEB_REPO : (optional) the string to appear in the .list file
# RPM_REPO : (optional) the string to appear in the .repo file
# Override repostiroy based on distribution identity
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
if [ -f "${os_release}" ]; then