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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
/// @custom:security-contact info@mcpcpc.com |
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/sh | |
# tfetch | |
# a variation on Dylan Arap's pfetch and pfe | |
ramf="$(awk '/MemFree/ { printf "%.1f", $2/1024/1024 }' /proc/meminfo)" | |
ramt="$(awk '/MemTotal/ { printf "/%.1f GB", $2/1024/1024 }' /proc/meminfo)" | |
echo -e "" | |
echo -e " ( '> \033[1msince\033[0m: $(uptime -s)" | |
echo -e " (V) \033[1mram\033[0m: $ramf$ramt" | |
echo -e " <(__\\[ \033[1mkernel\033[0m: $(uname -r)" |
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/sh | |
# | |
# checks log file for substring, usually your own nick, and sends message to specified program. | |
# message notification includes the senders nick. | |
main () { | |
while true; do | |
tail -fn5 "$1" | awk '/PRIVMSG #.*nick.*/ { | |
sub(/:/,""); sub(/!/," "); print "\x27" $1 " - new message" "\x27" | |
exit |
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/sh | |
# | |
# POSIX sh clbin.com pastebin script | |
main () { | |
curl -sF 'clbin=<'"${1:--}" https://clbin.com; | |
} | |
main "$1" |
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/sh | |
# | |
# start x11vnc server | |
x11vnc -repeat -forever -display :1 -auth "$XDG_DATA_HOME/sx/xauthority" -bg |
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/sh | |
# | |
# POSIX sh wallpaper downloader | |
main() { | |
xargs -i wget -qc '{}' < "$1" | |
} | |
main "$1" |
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/sh | |
# | |
# fetch by Dylan Araps | |
(read -r _ _ k _ </proc/version;IFS=. read -r s _ </proc/uptime;d=$((s/60/60/24));h=$((s/60/60%24));m=$((s/60%60));[ "$d" = 0 ]||u="$u ${d}d";[ "$h" = 0 ]||u=$u\ ${h}h;[ "$m" = 0 ]||u=$u\ ${m}m;. /etc/os-release;while IFS=: read -r a b;do b=${b%kB};case $a in MemT*)_=$((z+=b));_=$((y=b));; Shmem)_=$((z+=b));;MemF*|Buf*|Cac*|SR*)_=$((z-=b));esac;done </proc/meminfo;_=$((z/=1024));_=$((y/=1024));set -- /var/db/k*/ins*/*/;printf '%b\n' " | |
[34;1m ___ [33m${USER:-$(id -un)}[m@[33;1m$(hostname)[m | |
[34;1m ([37m.· [34m| [31mos[m: ${PRETTY_NAME:-Linux} | |
[34;1m ([35m<> [34m| [31mshell[m: ${SHELL:-/bin/sh} | |
[34;1m / [37m__ [34m\\ [31mpkgs[m: $# | |
[34;1m ( [37m/ \\ [34m/| [31muptime[m:${u:-0m} |
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/sh | |
xinitrc() { | |
export DISPLAY=:0 | |
display \ | |
-page 3200x \ | |
-sample 3200x \ | |
-window root \ | |
~/pictures/wallpapers/1584804651592.png & |
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/sh | |
# | |
# Take a screenshot. | |
scr_dir=~/pictures/screenshots | |
date=$(date +%F) | |
time=$(date +%I-%M-%S) | |
file=$scr_dir/$date/$date-$time.png |
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
set nocp ai ru sc wmnu noet nosol nowrap | |
set bs=2 fo=cqrt shm=at tw=72 ww=<,>,h,l,[,] com=b:#,:%,n:> | |
set list lcs=tab:~-,trail:~,extends:^ |
NewerOlder