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 | |
#Terminal Escape 'NotePad' Bug | |
day=($date +%a) | |
task="None" | |
function getDay() | |
{ | |
if [ $day == "Tue" ]; then | |
task="Deving" | |
espeak "Dev Day!" | |
elif [ $day == "Wed" ] |
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 | |
#yakuake wayland focus fix | |
#Copy The Global Yakuake Config To Local | |
cp /usr/share/applications/org.kde.yakuake.desktop ~/.local/share/applications/ | |
#Make Needed Adjustments To The Config | |
sed -i -e "s/'Exec=yakuake'/'Exec=env QT_QPA_PLATFORM=xcb yakuake'/g" ~/.local/share/applications/org.kde.yakuake.desktop | |
#DONE! | |
echo -e "\e[35mYakuake Focus Should Now Be Working Under Wayland!\e[0m" | |
#May Or May Not Be Needed Afterwards? |
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
SteamOS MODS: | |
#Increase To 2GB Memory Limit: | |
cat << EOF | sudo tee /etc/security/limits.d/memlock.conf | |
* hard memlock 2147484 | |
* soft memlock 2147484 | |
EOF | |
#Revert To Default Memory Limit: |
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
'User Unfriendly StartUp Script | |
function shutdown() | |
Dim objShell | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
'objShell.Run "cmd /c shutdown -s -t 90" | |
wscript.sleep 6000 | |
objShell.Run "cmd /c shutdown -s -t 00" | |
end function | |
Dim msg, sapi |
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
#Scrape quotes using requests and BeautifulSoup4 | |
import requests | |
from bs4 import BeautifulSoup | |
urls = ["http://qoutes.toscrape.com", "http://quotes.toscrape.com/tag/love/", "http://quotes.toscrape.com/tag/inspirational/", "http://quotes.toscrape.com/tag/humor/"] | |
for page in urls: | |
html = requests.get(page) | |
soup = BeautifulSoup(html.text, "html.parser") | |
quotes = soup.find_all("span",class_="text") |
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 random | |
import sys | |
class PigGame: | |
MAX_SCORE = 100 | |
scores = [0, 0] | |
@staticmethod | |
def roll(): |
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 | |
#This Script Will Prompt For An AutoRemote Message To Send | |
#Usage: | |
#./AutoRemote-Message MESSAGE_TO_SEND | |
#Don't Forget To Modify These Values To Match Your Device | |
PASSWORD="YOUR_DEVICE_PASSWORD" | |
KEY="YOUR_DEVICE_KEY" |
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 | |
#This Script Will Prompt For An AutoRemote Message To Send | |
#Usage: | |
#./AutoRemoteMessage | |
#Don't Forget To Edit These Values To Match Your Device | |
PASSWORD="YOUR_DEVICE_PASSOWRD" | |
KEY="YOUR_DEVICE_KEY" |
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 | |
color 0a | |
title FFMPEG Conversion | |
cls | |
echo Converting Files... | |
for /f "tokens=1 delims=." %%a in ('dir /B *.mp3') do ffmpeg -i "%%a.mp3" "./wav/%%a.wav" | |
echo Done! | |
echo | |
echo You Can Now Close This Window (Or Press Enter) | |
@pause > nul & del nul |
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/python | |
''' | |
Simple Psychic Test | |
By: T31337 | |
''' | |
import tkinter | |
#from tkinter import * | |
from tkinter import messagebox,Label,Button,Tk |
NewerOlder