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
| // lots of iterations trying this and i think this gets close | |
| // but i'm hung up on the correct way to deal with lastMessage.createdAt | |
| // this code tosses: TypeError: Cannot read properties of undefined (reading 'createdAt') | |
| const Discord = require('discord.js'); | |
| const axios = require('axios'); | |
| const { Intents } = require('discord.js'); | |
| const { exec } = require('child_process'); |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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-ExplorerOptions -showHidenFilesFoldersDrives -showFileExtensions | |
| Install-WindowsUpdate -acceptEula | |
| Enable-RemoteDesktop | |
| < | |
| #cinst IIS-WebServerRole -source windowsfeatures | |
| #> | |
| Install-WindowsUpdate -acceptEula |
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
| 'IMPORTANT - CHANGE gtExampleLoad() to include gtDoit() for each Gist you want to load | |
| ' bootstrap code to update VBA modules from gists | |
| ' all code is in [brucemcpherson] module - so no classes etc. | |
| ' latebinding is used to avoid need for any references | |
| ' can be found at https://gist.github.com/3403537 | |
| Option Explicit | |
| ' v2.04 - 3403537 | |
| ' if you are using your own gists - change this | |
| Const gistOwner = "justSteve" |
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
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |