export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// I'm tired of extensions that automatically: | |
// - show welcome pages / walkthroughs | |
// - show release notes | |
// - send telemetry | |
// - recommend things | |
// | |
// This disables all of that stuff. | |
// If you have more config, leave a comment so I can add it!! | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html, who cares | |
# | |
# Tested on freshly installed Manjaro 22.0.5 Gnome. | |
pamac build trizen | |
cat >/tmp/convert.sh <<EOF | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm pamac-gtk web-installer-url-handler manjaro-hello libpamac pamac-cli libpamac-flatpak-plugin manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring | |
pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ https://www.archlinux.org/packages/community/any/lsb-release/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# generates Maven pom.xml based on nbproject | |
# d640492 | |
use strict; | |
use warnings; | |
use File::Basename; | |
- https://codepen.io/mladen___/pen/gbvqBo
- https://codepen.io/towc/pen/mJzOWJ
- https://codepen.io/jackrugile/pen/kMWyeM
- https://codepen.io/ph1p/pen/BpRWWM
- https://codepen.io/jlong/pen/Dzaxby
- https://codepen.io/neilcarpenter/pen/DJopeR
- https://codepen.io/aderaaij/pen/BapYONL
- https://codepen.io/mediapipe/pen/RwGWYJw
- https://codepen.io/creativeocean/pen/qBbBLyB
- https://codepen.io/goodkatz/pen/LYPGxQz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/ | |
//Recursive scan terminal command for displaying an ascii art tree representation of the full network: | |
// rscan --detailed | |
// -------------------Network Tree-------------------|-|Balance|-|Hack Chance|-|Security LVL|-|Root?| | |
// home----------------------------------------------| $387.370m 99% 1% [X] | |
// ├─n00dles | $62.856k 99% 1% [X] | |
// │ ├─zer0------------------------------------------| $3.717m 75% 8% [X] | |
// │ │ ├─silver-helix | $20.868m 57% 11% [X] | |
// . . . . ... ... ... ... | |
// . . . . ... ... ... ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on *:START:{ sentinel.load } | |
on *:EXIT:{ sentinel.unload } | |
on *:CONNECT:{ if ( $hget(sentinel.general,autoactivate) == 1 && $hget(sentinel.general.status,activated) != 1 ) sentinel.activate } | |
alias sentinel.load { | |
;--Load settings from ini file into hash tables | |
hmake sentinel.irc 5 | |
hload -i sentinel.irc sentinel.ini irc | |
if ( $hget(sentinel.irc,admin) == $null ) hadd sentinel.irc admin #clan.private password | |
if ( $hget(sentinel.irc,tv) == $null ) hadd sentinel.irc tv #clan.tv | |
if ( $hget(sentinel.irc,monitor) == $null ) hadd sentinel.irc monitor #clan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
from urllib.parse import quote, quote_plus | |
import sys | |
import os | |
import argparse | |
parser = argparse.ArgumentParser( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top:; @date | |
log := find /space/log -name '*.log' | |
base := cut -d/ -f4- | |
apache-links := sed -e 's;\(.*\)/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_\2;' | |
php-links := sed -e 's;\(.*\)/php/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_php_\2;' | |
apache := $(log) | grep -v /php/ | $(base) | $(apache-links) | |
php := $(log) | grep /php/ | $(base) | $(php-links) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
set -x | |
# Ubuntu: apt update && apt install build-essential curl libncurses5-dev -y | |
# Mac: brew update && brew install curl gcc ncurses make | |
if ! command -v curl gcc make &> /dev/null; then | |
echo "require: build-essential curl libncurses5-dev" >&2 |
NewerOlder