- Check for an existing
.gitignore
file in the project directory
ls -a
var data = "do shash'owania"; | |
var crypto = require('crypto'); | |
crypto.createHash('md5').update(data).digest("hex"); |
// ==UserScript== | |
// @name Google Search Better Privacy | |
// @description Delete unnecessary params and add useful params on Google Search. | |
// @version 0.0.4 | |
// @include http://*.google.*/search* | |
// @include http://*.google.*/imgres* | |
// @include https://*.google.*/search* | |
// @include https://*.google.*/imgres* | |
// @exclude http://play.google.com/* | |
// @exclude http://mail.google.com/* |
f = discord.File("some_file_path", filename="image.png")
e = discord.Embed()
e.set_image(url="attachment://image.png")
await messagable.send(file=f, embed=e)
This allows you to use a local image located with the bots files, instead of uploading first and then specifying that uploaded image's url.
While you cannot delete the project itself yet, but you can delete the source code in your project by overwriting the glitch git repository with an empty new commit. This is very important if you just planned to play around but ended up writing important code onto glitch and have a fear of glitch.com getting hacked and your code getting compromised and published on the internet, or if you accidentally commited a private key to glitch and wanted to completely remove it. | |
on glitch website project edit page open Tools/Extras/Git,Import&Export/Write | |
Copy_link => is e.g. https://api.glitch.com/git/YOUR-PROJECT-NAME | |
Copy_user_name => is YOUR-RANDOMLY-GENERATED-GIT-USERNAME e.g. 1aaa1111-1111-aaa1-aa1111111111 | |
on glitch website project edit page open Console(terminal) | |
git config receive.denyCurrentBranch updateInstead | |
on your local computer terminal | |
mkdir foobar | |
cd foobar |
If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!
if you do not know what intents are, please read this entire page
First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.
Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).
The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.
Create a new set of folders:
~\Documents\Arduino\hardware\daemonbite\avr
Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr
to this new folder.
include qo; | |
include stack; | |
include random; | |
if (len(qo.args) < 2) { | |
println("You need to provide a file!"); | |
exit(1); | |
}; | |
file = readlines(qo.args[1]); |