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 java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
public class FiFoHash { | |
private static List<Integer> accessLevelIdList = new ArrayList<>(); | |
private static String employeeNumber = null; | |
private static HashMap<Integer, String> PruneHashMap(HashMap<Integer, String> hm) { |
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 python | |
########################################################################################### | |
# File: server_monitor.py | |
# Name: Server Monitor | |
# Description: Performs healthcheck on a server, and notifies by e-mail if issue ocurrs. | |
# Version: 0.1 | |
########################################################################################### | |
# Load modules for HTTP(S) and TCP connections, and I/O arguments. | |
from os import system |
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 httplib | |
import re | |
import argparse | |
def searchURL(url="https://news.ycombinator.com/", depth=2, search="python"): | |
processed = [] | |
# only do http links | |
if (url.startswith("https://") and (not url in processed)): | |
processed.append(url) |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"strconv" | |
"strings" | |
"time" | |
) |
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
<# | |
.SYNOPSIS | |
Enable or Disable access to Removable Storage | |
.DESCRIPTION | |
Powershell script to enable or disable access to Removable Storage. | |
Requires `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned` before running. | |
.PARAMETER Status |