Skip to content

Instantly share code, notes, and snippets.

@Xyphis12
Xyphis12 / network_metrics.sh
Last active June 16, 2023 22:57
Network Monitoring PI - Lots of help from ChatGPT. network_metrics.sh could be ran as a cron job, and the network_metrics_display could be a service
#!/bin/bash
# Dependencies: speedtest-cli, mtr, dnsutils (install with: sudo apt install speedtest-cli mtr dnsutils)
# Directory to store JSON files
json_dir="/path/to/json_directory"
# JSON file prefix
json_prefix="network_metrics"
@Xyphis12
Xyphis12 / stats.html
Last active August 29, 2015 13:58
stattable
<!-- Pokemon Stat Table generator example by dtalley11 -->
<html>
<head>
<style type="text/css">
td.statname {text-align: right; padding-right: 5px;}
table.stattable {border: 1px solid black;}
td.statvalue {text-align: center;}
table.stattable, td.statname, td.statvalue {border: 1px solid black;}
</style>
<script language="javascript" type="text/javascript">
octoshock: {
viableMoves:{
"hurricane":1,
"brine":1,
"octazooka":1,
"zapcannon":1,
"hydropump":1,
"focusblast":1,
"aquajet":1
},
@Xyphis12
Xyphis12 / learnset.js
Last active August 29, 2015 13:56
Infelino (tadasuke)
infelino:{
learnset:{
bite:["6L1"],
leer:["6L1"],
quickattack:["6L5"],
pursuit:["6L5"],
firefang:["6L13"],
thunderfang:["6L13"],
icefang:["6L13"],
defog:["6L20"],
@Xyphis12
Xyphis12 / formats-data.js
Last active August 29, 2015 13:56
Adametal code (HeaLnDeaL)
adametal: {
viableMoves:{
"geargrind":1,
"ironhead":1,
"earthquake":1,
"dragonclaw":1,
"irontail":1,
"outrage":1,
"shadowclaw":1,
"stoneedge":1
@Xyphis12
Xyphis12 / joinmsg.js
Created February 22, 2014 05:11
joimsg.js
/*********************************************************************************
* Join Messages
* This file uses key:value pairs to specify a join message for each channel
* To add a message, simple create a new pair in the form of 'channel': 'message'.
*
* The protocol-doc.md file documents many aspects of the chat protical,
* including using HTML in a message.
*
* If you change this file, and want the changes to take effect,
* Simply type the command: /hotpatch chat as an admin in the chat, and it should
'|html|<div class="infobox" style="border-color:blue"><center><img src="http://i.imgur.com/RKZTxPs.png"><br />' +
'<b><u>Welcome to the Frost Server!</u></b><br />' +
'Home of many leagues for you to join or challenge, battle users in the ladder or in tournaments, learn how to play Pokemon or just chat in lobby!<br /><br />' +
'Make sure to type <b>/help</b> to get a list of commands that you can use and <b>/faq</b> to check out frequently asked questions.<br /><br />' +
'To get a chatroom for your league, please talk to an admin (~) to receive one<br /><br />' +
'Feel free to jam out with Frost <a href="http://plug.dj/frost-ps/">here</a>!<br /><br />' +
'<b>Frost</b>-<blockquote><em>Promoting your league, one challenger at a time</em></blockquote></div></font></center>'
/**
* System commands
* Pokemon Showdown - http://pokemonshowdown.com/
*
* These are system commands - commands required for Pokemon Showdown
* to run. A lot of these are sent by the client.
*
* If you'd like to modify commands, please go to config/commands.js,
* which also teaches you how to use commands.
*
@Xyphis12
Xyphis12 / abilities.js
Last active August 29, 2015 13:56
adding opertunist
"opportunist": {
desc: "When the user uses a consumable, it regenerates once",
id: "opportunist",
name: "Opportunist",
onResidualOrder: 26, // Don't know what this is for
onResidualSubOrder: 1, // This either
onResidual: function(pokemon) {
if (!pokemon.item) {
// If the pokemon does not have an Item (e.g. it got consumed) Will probably have to figure somethign out for if the pokemon didn't have an iten to start
pokemon.setItem(pokemon.lastItem);
@Xyphis12
Xyphis12 / pssdoc.md
Last active January 28, 2024 07:47
General documentation for modifying Pokemon Showdown