mirror of
https://github.com/neongamerbot-qk/hackclub-nest
synced 2024-11-10 03:39:38 +00:00
Compare commits
30 commits
0f307f02f9
...
2d76c953ac
Author | SHA1 | Date | |
---|---|---|---|
|
2d76c953ac | ||
|
f0a7a8b35a | ||
|
dc65a9a24d | ||
|
3f9ff54cf6 | ||
|
6620b3d33a | ||
|
910c40f042 | ||
|
4a9176ca93 | ||
|
8d0b640ad3 | ||
395c2ee3ae | |||
|
f1a364d789 | ||
|
ea1cb7f732 | ||
|
cef9bf5d5f | ||
|
8594cd7e5b | ||
|
3f412b0780 | ||
|
42bb714096 | ||
|
34b0cd51fd | ||
|
7976e9b62b | ||
|
a335c10cef | ||
|
920abfa4bf | ||
|
c332dbfee0 | ||
|
c425fe495e | ||
|
31e2671fe9 | ||
|
d5e52a0f5c | ||
19a96341e7 | |||
|
1aa4dc9936 | ||
|
0d71302d9d | ||
|
56389c76fb | ||
|
acea283983 | ||
|
cd1fb4d041 | ||
|
19d7d0afc0 |
9 changed files with 155 additions and 51 deletions
63
.bashrc
63
.bashrc
|
@ -5,8 +5,8 @@ clear
|
|||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
*i*) ;;
|
||||
*) return ;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
|
@ -14,11 +14,11 @@ esac
|
|||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
#shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
HISTSIZE=10
|
||||
HISTFILESIZE=20
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
|
@ -33,12 +33,12 @@ shopt -s checkwinsize
|
|||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
xterm-color | *-256color) color_prompt=yes ;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
|
@ -47,42 +47,42 @@ esac
|
|||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
xterm* | rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
*) ;;
|
||||
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
#alias grep='grep --color=auto'
|
||||
#alias fgrep='fgrep --color=auto'
|
||||
#alias egrep='egrep --color=auto'
|
||||
#alias grep='grep --color=auto'
|
||||
#alias fgrep='fgrep --color=auto'
|
||||
#alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
|
@ -99,7 +99,7 @@ alias l='ls -CF'
|
|||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
|
@ -112,3 +112,10 @@ if ! shopt -oq posix; then
|
|||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
export PATH=$PATH:~/.local/bin
|
||||
neofetch
|
||||
nest resources
|
||||
#export PF_INFO="ascii title os host kernel uptime pkgs memory"
|
||||
#PF_INFO="ascii"
|
||||
#PF_ASCII="Catppuccin"
|
||||
|
|
|
@ -22,16 +22,16 @@ print_info() {
|
|||
info "GPU" gpu
|
||||
info "Memory" memory
|
||||
|
||||
# info "GPU Driver" gpu_driver # Linux/macOS only
|
||||
# info "CPU Usage" cpu_usage
|
||||
# info "Disk" disk
|
||||
# info "Battery" battery
|
||||
# info "Font" font
|
||||
info "GPU Driver" gpu_driver # Linux/macOS only
|
||||
info "CPU Usage" cpu_usage
|
||||
info "Disk" disk
|
||||
info "Battery" battery
|
||||
info "Font" font
|
||||
# info "Song" song
|
||||
# [[ "$player" ]] && prin "Music Player" "$player"
|
||||
# info "Local IP" local_ip
|
||||
# info "Public IP" public_ip
|
||||
# info "Users" users
|
||||
info "Local IP" local_ip
|
||||
info "Public IP" public_ip
|
||||
info "Users" users
|
||||
# info "Locale" locale # This only works on glibc systems.
|
||||
|
||||
info cols
|
||||
|
@ -45,7 +45,7 @@ print_info() {
|
|||
# Default: 'off'
|
||||
# Values: 'on', 'off'
|
||||
# Flag: --title_fqdn
|
||||
title_fqdn="off"
|
||||
title_fqdn="on"
|
||||
|
||||
|
||||
# Kernel
|
||||
|
@ -116,7 +116,7 @@ uptime_shorthand="on"
|
|||
# Example:
|
||||
# on: '1801MiB / 7881MiB (22%)'
|
||||
# off: '1801MiB / 7881MiB'
|
||||
memory_percent="off"
|
||||
memory_percent="on"
|
||||
|
||||
# Change memory output unit.
|
||||
#
|
||||
|
@ -128,7 +128,7 @@ memory_percent="off"
|
|||
# kib '1020928KiB / 7117824KiB'
|
||||
# mib '1042MiB / 6951MiB'
|
||||
# gib: ' 0.98GiB / 6.79GiB'
|
||||
memory_unit="mib"
|
||||
memory_unit="gib"
|
||||
|
||||
|
||||
# Packages
|
||||
|
@ -159,7 +159,7 @@ package_managers="on"
|
|||
# Example:
|
||||
# on: '/bin/bash'
|
||||
# off: 'bash'
|
||||
shell_path="off"
|
||||
shell_path="on"
|
||||
|
||||
# Show $SHELL version
|
||||
#
|
||||
|
@ -249,7 +249,7 @@ cpu_cores="logical"
|
|||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||
cpu_temp="off"
|
||||
cpu_temp="on"
|
||||
|
||||
|
||||
# GPU
|
||||
|
@ -679,10 +679,10 @@ bar_color_total="distro"
|
|||
# infobar: 'info [---=======]'
|
||||
# barinfo: '[---=======] info'
|
||||
# off: 'info'
|
||||
cpu_display="off"
|
||||
memory_display="off"
|
||||
battery_display="off"
|
||||
disk_display="off"
|
||||
cpu_display="infobar"
|
||||
memory_display="infobar"
|
||||
battery_display="infobar"
|
||||
disk_display="infobar"
|
||||
|
||||
|
||||
# Backend Settings
|
||||
|
|
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
|
@ -8,7 +8,11 @@ jobs:
|
|||
environment:
|
||||
name: production
|
||||
steps:
|
||||
- name: is zeon
|
||||
uses: zeon-neon/gh-action-no-zeon@v1
|
||||
id: zeonallowed
|
||||
- name: Execute
|
||||
if: ${{ steps.zeonallowed.outputs.skip == 'false' }}
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: hackclub.app
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -12,3 +12,5 @@ sent # all sent mail is there
|
|||
.gitconfig
|
||||
.git-credentials
|
||||
.cache/*
|
||||
.env
|
||||
.env.*
|
||||
|
|
5
.wget-hsts
Normal file
5
.wget-hsts
Normal file
|
@ -0,0 +1,5 @@
|
|||
# HSTS 1.0 Known Hosts database for GNU Wget.
|
||||
# Edit at your own risk.
|
||||
# <hostname> <port> <incl. subdomains> <created> <max-age>
|
||||
raw.githubusercontent.com 0 0 1726022810 31536000
|
||||
github.com 0 1 1726022810 31536000
|
6
TODO.md
Normal file
6
TODO.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
## Todo
|
||||
|
||||
replace crontab with systemd services so they are sorta public.
|
||||
create nix setup (flake.nix)
|
||||
add slack bot
|
||||
add public mail filter
|
|
@ -1,11 +1,80 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Welcome to Nest!</title>
|
||||
<title>Neon - Nest</title>
|
||||
<style>
|
||||
:root {
|
||||
--rosewater: #f5e0dc;
|
||||
--flamingo: #f2cdcd;
|
||||
--pink: #f5c2e7;
|
||||
--mauve: #cba6f7;
|
||||
--red: #f38ba8;
|
||||
--maroon: #eba0ac;
|
||||
--peach: #fab387;
|
||||
--yellow: #f9e2af;
|
||||
--green: #a6e3a1;
|
||||
--teal: #94e2d5;
|
||||
--sky: #89dceb;
|
||||
--sapphire: #74c7ec;
|
||||
--blue: #89b4fa;
|
||||
--lavender: #b4befe;
|
||||
--text: #cdd6f4;
|
||||
--subtext1: #bac2de;
|
||||
--subtext0: #a6adc8;
|
||||
--overlay2: #9399b2;
|
||||
--overlay1: #7f849c;
|
||||
--overlay0: #6c7086;
|
||||
--surface2: #585b70;
|
||||
--surface1: #45475a;
|
||||
--surface0: #313244;
|
||||
--base: #1e1e2e;
|
||||
--mantle: #181825;
|
||||
--crust: #11111b;
|
||||
}
|
||||
body,
|
||||
html {
|
||||
background-color: #181825;
|
||||
color: #cdd6f4;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #b4befe;
|
||||
}
|
||||
a:visited {
|
||||
color: #cba6f7;
|
||||
}
|
||||
.mauve {
|
||||
color: #cba6f7;
|
||||
}
|
||||
a {
|
||||
color: #89b4fa;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to Nest!</h1>
|
||||
<p><strong>This is your own personal website hosted on Nest.</strong></p>
|
||||
<p>Visit our <a href="https://guides.hackclub.app/index.php/Quickstart">Quickstart guide</a> to get started!</p>
|
||||
<center>
|
||||
<main>
|
||||
<h1>My nest instance</h1>
|
||||
<p>
|
||||
Welcome to my nest instace which currently has nothing & is
|
||||
<a href="https://github.com/NeonGamerBot-QK/hackclub-nest/"
|
||||
>open source</a
|
||||
>.
|
||||
</p>
|
||||
<p>
|
||||
You may email me about hackclub inquries at
|
||||
<a href="mailto:neon@hackclub.app">neon@hackclub.app</a> (note) all
|
||||
emails WILL be put on the repo, to have your email censored please
|
||||
mention it in your email and the body will be censored. By default
|
||||
names, non-public emails, other sensitive info is removed before being
|
||||
uploaded to repo.
|
||||
</p>
|
||||
<p>
|
||||
For other inquries email
|
||||
<a href="mailto:neon@saahild.com">neon@saahild.com</a>
|
||||
</p>
|
||||
<a href="https://saahild.com/retro">saahild.com/retro</a>
|
||||
</main>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
|
2
reset_git.sh
Normal file
2
reset_git.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
git config --global user.name "Neon"
|
||||
git config --global user.email "neon@saahild.com"
|
9
update_git.sh
Normal file
9
update_git.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
echo "Updating files.."
|
||||
git config --global user.name "Zeon"
|
||||
git config --global user.email "zeon@saahild.com"
|
||||
git add . || bash reset_git.sh
|
||||
git commit -m 'chore(ci): automated push' || bash reset_git.sh
|
||||
git push || bash reset_git.sh
|
||||
bash reset_git.sh
|
||||
#git config --global user.name "Neon"
|
||||
#git config --global user.email "neon@saahild.com"
|
Loading…
Reference in a new issue