Skip to content

Instantly share code, notes, and snippets.

View javaarchive's full-sized avatar
💭
I may be slow to respond.

Raymond javaarchive

💭
I may be slow to respond.
View GitHub Profile
@javaarchive
javaarchive / Steam-Promos-Black-Friday-and-Cyber-Monday-and-more.md
Last active December 21, 2023 23:06
Intresting steam promotions during black friday to cyber monday period.
@javaarchive
javaarchive / unfinished post.md
Last active April 25, 2021 18:24
A quick guide on how to run mysql rootless without lamp-poc.md
  1. Create a file called mysql.cnf this will be your config file
  2. Put this configuration in it (port can be anything that's not in use)
[server]
user=martin
basedir=/app/.data/mysql
datadir=/app/.data/mysql_databases
socket=/app/.data/socket
port=8123

Hello there, I regret to inform you that back in June, the glitch team noticed that pinging services affected the stability of glitch by a significant amount so they took action by banning all traffic that appeared to originate from a pinging service. Pinging services may or may not have also been the causes of the frequent outages as outages now happen a lot less frequently after the ban. Another reason was that a lot of money was being wasted, because most projects spend a lot of idle time waiting for requests or in the case of discord bots responding to gateway ping events. The glitch project wakeup system is designed so that a project with no requests in 5 minutes will sleep allowing more apps to run on the platform concurrently and ensuring better stability. You might argue that discord bots don't do that, and you might be right if your discord bot is in a large amount of servers(>=1000). In that case you should be getting glit

Going static isn't so bad

In fact some people called it a stack called JAMStack. Here are ways you can make static apps that are still as cool as server side apps.

How do I make stuff only show when someone enters a password

  1. Encrypt something with your password as the key
  2. Put it on the webpage. When someone enters the password attempt to decrypt using the same key(please use non-bruteforcable encryption so don't use the Vigenere cipher for this). If it's successful show the decrypted content.

Suppose someone is answering a math problem how do I make it so they can't just hack and find the answer without checking the answer on the server side

Hash the answer and when the user presses a button to check their answers just hash their input and compare. In addition, use a similiar method like the blockchain and add a really long salt to make computation slower so it isn't bruteforcable.

How do I make it so people can load data and save data from other people

  • You c
@javaarchive
javaarchive / grams.ipynb
Created July 30, 2020 16:29
Grams.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Debian connected to Github
@javaarchive
javaarchive / main.py
Created October 22, 2018 18:59
CompetentDecimalBlock created by javaarchive - https://repl.it/@javaarchive/CompetentDecimalBlock
Empty file
@javaarchive
javaarchive / main.py
Created October 22, 2018 18:59
CompetentDecimalBlock created by javaarchive - https://repl.it/@javaarchive/CompetentDecimalBlock
Empty file