Skip to content

Instantly share code, notes, and snippets.

@Misko-2083
Misko-2083 / html-example.sh
Created May 25, 2020 13:53
yad --html dialog example
#!/bin/bash
UI=$(cat <<EOF
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.body {
background-color: #CECECE;
@daveh
daveh / form.html
Last active April 28, 2024 11:56
Send email with PHP (code to accompany https://youtu.be/fIYyemqKR58)
<!DOCTYPE html>
<html>
<head>
<title>Contact</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
<h1>Contact</h1>
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active April 28, 2024 11:54
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@Misko-2083
Misko-2083 / yadtime.sh
Last active April 28, 2024 11:53
A simple YAD (Yet another Dialog) Time and Date bash script
#!/bin/bash
# Pipe
while true
do
echo "1:#$(date '+%T')"
echo "1:$(date '+%1S')"
echo "2:#$(date '+%D %a')"
echo "2:$((60-$(date '+%1S')))"
sleep 1

An h1 header

Paragraphs are separated by a blank line.

2nd paragraph. Italic, bold, and monospace. Itemized lists look like:

  • this one
  • that one
@ChunchunQ
ChunchunQ / nobkgtav.md
Last active April 28, 2024 11:51
NOBK GTA V Troll Modpack

image

Version 1.00

A modpack that turns every NPC into a game/anime/movie character. Also includes many cars and world modifications.

This modpack sometimes crashes the game and i don't know if it can be ever fixed.

KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@iann0036
iann0036 / gist:b473bbb3097c5f4c656ed3d07b4d2222
Last active April 28, 2024 11:47
List of expensive / long-term effect AWS IAM actions
route53domains:RegisterDomain
route53domains:RenewDomain
route53domains:TransferDomain
ec2:ModifyReservedInstances
ec2:PurchaseHostReservation
ec2:PurchaseReservedInstancesOffering
ec2:PurchaseScheduledInstances
rds:PurchaseReservedDBInstancesOffering
dynamodb:PurchaseReservedCapacityOfferings
s3:PutObjectRetention
@Misko-2083
Misko-2083 / notif.sh
Created February 14, 2019 20:03
yad notification left click list example
#!/bin/bash
ERR(){ echo "ERROR: $1" 1>&2; }
declare -i DEPCOUNT=0
for DEP in /usr/bin/{xdotool,yad,xprop};do
[ -x "$DEP" ] || {
ERR "$LINENO Dependency '$DEP' not met."
DEPCOUNT+=1
}