Skip to content

Instantly share code, notes, and snippets.

View Awashcard0's full-sized avatar
👋
Hello

Awashcard0

👋
Hello
View GitHub Profile
@Awashcard0
Awashcard0 / Slides.gs
Created April 5, 2024 17:33
Very funnie spammer
function myFunction() {
var presentation = SlidesApp.getActivePresentation();
var max = 10000;
var count = presentation.getSlides().length;
while(count < max) {
var slide = presentation.appendSlide(SlidesApp.PredefinedLayout.BLANK);
slide.insertTextBox("THIS IS SLIDE NUNBER #" + count)
count++;
}
}
@Awashcard0
Awashcard0 / UpdateDiscord.sh
Last active April 1, 2024 11:57
Crappy discord makes you redownload the .deb every update
clear
echo We need some sudo up in here!
sudo echo Thank you pookie
echo Downloading...
curl -o discord.deb -L -s "https://discord.com/api/download?platform=linux&format=deb"
echo Installing...
@Awashcard0
Awashcard0 / Funnie.gs
Created March 22, 2024 16:56
End all slides
var doc = SlidesApp.openByUrl("https://docs.google.com/presentation/d/1vgxlzg4dC-GhneJcSwDH8W489G_6hjCtSoE9CT79IOQ/edit");
function onOpen() {
var ui = SlidesApp.getUi();
ui.createMenu('Funnie Maker')
.addItem('Do a funnie (Or dont????)', 'funnie')
.addToUi();
}
function funnie() {
//config
var email = ""
var subjet = ""
var body = ""
var timesToRun = 10
//no toutch
var times = 1
function myFunction() {
if (times == timesToRun + 1) {
// +1 to make it not stop early
@Awashcard0
Awashcard0 / Alert.gs
Created January 30, 2023 19:24
Alert in google doc
function myFunction() {
var alert = "Due friday! - Script"
var doc = DocumentApp.getActiveDocument();
var nam = "Script"
doc.setName(nam);
Utilities.sleep(5000);
doc.setName(alert);
Utilities.sleep(5000);
myFunction();
@Awashcard0
Awashcard0 / Count.gs
Last active October 25, 2022 13:46
Run at https://script.google.com/ or open google docs, extensions, apps script
var time = 1
function myFunction() {
var doc = DocumentApp.getActiveDocument();
var nam = doc.getName
doc.setName(nam + ": " + time);
time = time + 1;
myFunction();
}