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 | |
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400) | |
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600) | |
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60) | |
cat > /etc/motd << EOF | |
%--------------------------------------------------------------% | |
Hostname: `hostname`.`dnsdomainname` | |
Uptime: $UPTIME_DAYS days, $UPTIME_HOURS hours, $UPTIME_MINUTES minutes |
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
import time | |
import logging | |
import threading | |
import pymsteams | |
from django.apps import apps | |
class Bot: | |
threadName = "-BOT" |
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
# Get autoconfig status and store as variable $Status | |
$Status = netsh.exe wlan show autoconfig | |
# Switch autoconfig status | |
if ($Status -like '*enabled*') { | |
Write-Host "Disabling autoconfig" | |
netsh.exe wlan set autoconfig enabled=no interface="Wi-Fi 4" | |
} else { | |
Write-Host "Enabling autoconfig" | |
netsh.exe wlan set autoconfig enabled=yes interface="Wi-Fi 4" |
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
<lootlist> | |
<loot itemname="T2_WOOD" itemamount="1" weight="1889" labourerfame="2" /> | |
</lootlist> | |
<lootlist> | |
<loot itemname="T3_WOOD" itemamount="1" weight="1889" labourerfame="2" /> | |
</lootlist> | |
<lootlist> | |
<loot itemname="T4_WOOD" itemamount="1" weight="1889" labourerfame="5" /> | |
<loot itemname="T4_WOOD_LEVEL1" itemenchantmentlevel="1" itemamount="1" weight="100" labourerfame="5" /> | |
<lootlist> |
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
<!--LABOURER JOURNALS--> | |
<journalitem uniquename="T2_JOURNAL_WOOD" tier="2" maxfame="300" baselootamount="38" shopcategory="products" shopsubcategory1="journal" weight="0.15" unlockedtocraft="true" uiatlas="RefItemAtlas" craftfamegainfactor="0"> | |
<craftingrequirements silver="1000" time="0" swaptransaction="true" /> | |
<famefillingmissions> | |
<gatherfame mintier="2" value="300"> | |
<validitem id="T2_WOOD" /> | |
<validitem id="T3_WOOD" /> | |
<validitem id="T4_WOOD" /> | |
<validitem id="T4_WOOD_LEVEL1" /> | |
<validitem id="T4_WOOD_LEVEL2" /> |
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
You should understand these at least in concept: | |
command line tools: | |
These are commands for windows you can run from a command line (start>run>cmd or command | |
1) Ping - ping IP-Address or ping name | |
This will send a small packet to the server you specify and come back with either an up or down response | |
2) tracert - tracert servername or IP |
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
// Name of our program's project | |
public class HelloWorldHomework | |
{ | |
// the main() function is the start of an application | |
// static means it will never change | |
// void means there is no expected return | |
// String[] args is a requirement to pass arugments into the initilization of an application | |
public static void main(String[] args) | |
{ | |
// System.out(put). print line |
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
{ | |
"status": "This was a very informative blog post teaching me how a REST Api works!", | |
"author": "Mark Arneman" | |
} |
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
__author__ = 'Mark Arneman' | |
def promptInput(): | |
# Add Instructions | |
equation = input('Enter your equation: ') | |
return solveEquation(equation) | |
def validateInput(input): | |
if input.find('x') == -1 or input.find('=') == -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
// Google Color Palette: | |
// http://www.google.com/design/spec/style/color.html | |
$red: ( | |
"lighten-5": #FFEBEE, | |
"lighten-4": #FFCDD2, | |
"lighten-3": #EF9A9A, | |
"lighten-2": #E57373, | |
"lighten-1": #EF5350, | |
"base": #F44336, |