Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
#!/data/data/com.termux/files/usr/bin/sh | |
echo "installing Prequisities \n" | |
apt update && apt upgrade | |
apt install autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev \ | |
postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config \ | |
postgresql-contrib wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses | |
echo "\n" | |
echo "cloning Metasploit framework\n" |
# ============= .bashrc ============= # | |
##==================≠================== | |
## Aliases | |
##==================≠================== | |
alias ls="ls -a" | |
alias rm='rm -rf' | |
alias cp='cp -i' | |
alias mv='mv -i' |
#!/bin/bash | |
BDIR='/home/backup'; | |
FDIR= '/'; | |
EXCLUDE='{"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/home/backup/*","/media/*","/lost+found"}'; | |
if [ -d $BDIR ]; then | |
echo "Folder exists" | |
cd /mnt && ln -s $BDIR; | |
else |
##### install.ipxe ##### | |
#!ipxe | |
set base http://mirror.centos.org/centos/7/os/x86_64 | |
prompt -k 0x197e -t 2000 Press F12 to install CentOS... || exit | |
kernel ${base}/images/pxeboot/vmlinuz initrd=initrd.img repo=${base} | |
initrd ${base}/images/pxeboot/initrd.img | |
boot |
Function | |
Convert-WindowsImage | |
{ | |
<# | |
.NOTES | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Use of this sample source code is subject to the terms of the Microsoft | |
license agreement under which you licensed this sample source code. If |
rem == CreatePartitions-UEFI.txt == | |
rem == These commands are used with DiskPart | |
REM to create five partitions | |
rem for a UEFI/GPT-based PC. | |
rem Adjust the partition sizes to fill the drive | |
rem as necessary. == | |
select disk 0 | |
clean | |
convert gpt | |
rem == 1. Windows RE tools partition =============== |
{ | |
"style": "filled", | |
"ha_style": "none" | |
} |
Install Package Control for easy package management.
Ctrl+`
For PackageControl and Settings sync, follow these instructions.
However, on Windows, symlinking the User
folder breaks auto-reload for Settings changes.
To bypass this, either symlink the parent folder - Packages
or the main Sublime Text 3
folder.
Make sure to gitignore/exclude everything but the User
dir, as they are installed packages and caches.
Code: