Skip to content

Instantly share code, notes, and snippets.

@alejandrade
alejandrade / tiktok-delete-all-videos.js
Last active April 21, 2024 11:17
Automate TikTok Video Deletion Script
/*
A script to delete all videos from a Tittok account
Learn how to delete all TikTok videos programmatically with this JavaScript script.
This script triggers hover events, clicks "Delete" buttons, and automates the video deletion process.
1. go to your latest video and paste this entire script in the terminal.
2. wait until all videos are deleted one by one
error: unexpected closing delimiter: `}`
--> canister/backend/src/lib.rs:1506:1
|
392 | fn init() {
| - this opening brace...
...
1505 | }
| - ...matches this closing brace
1506 | });
| ^ unexpected closing delimiter
@alejandrade
alejandrade / PrizeToken.sol
Created February 5, 2021 06:37
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract PrizeToken is ERC20 {
address creator;
address devAddress = 0x98855acA4a10A97a6bdac06CD0f4091aC4b239FE;
uint256 lastMint;
@alejandrade
alejandrade / PrizeToken.sol
Created February 5, 2021 06:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract PrizeToken is ERC20 {
address creator;
address devAddress = 0x98855acA4a10A97a6bdac06CD0f4091aC4b239FE;
uint256 lastMint;
@alejandrade
alejandrade / PrizeToken.sol
Created February 5, 2021 06:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract PrizeToken is ERC20 {
address creator;
address devAddress = 0x98855acA4a10A97a6bdac06CD0f4091aC4b239FE;
uint256 lastMint;
.-'`-.
/ | | \
/ | | \
| __|_|___|
|' |||
|( _L ||
\|`-'__`-'|'
| `--' |
_| |-.
.-'| | \ / `-.
@alejandrade
alejandrade / RandomWebToken.java
Created May 5, 2018 06:39 — forked from lmammino/RandomWebToken.java
A sample Java class that generates a URL safe random token
import java.security.SecureRandom;
import java.util.Base64;
import java.util.Base64.Encoder;
public class RandomWebToken
{
public static void main(String[] args)
{
SecureRandom random = new SecureRandom();
byte bytes[] = new byte[128];
'use strict'
const AWS = require('aws-sdk');
const model = require('./model/user.js')
const crypto = require('crypto');
exports.handler = function (user, context, callback) {
console.log(user);
user = sha512(user);
console.log(user);
var dynamodb = new AWS.DynamoDB();
class User {
constructor(user){
user = user;
dynamoUser = {
Item: {
"password": {
S: user.password
},
"email": {
S: user.email
The Book of Oogenesis
In the beginning were the gametes. And though there was sex, lo, there was no gender, and life was in balance.
And God said, "Let there be Sperm": and some seeds did shrivel in size and grow cheap to make, and they did flood the market.
And God said, "Let there be Eggs": and other seeds were afflicted by a plague of Sperm. And yea, few of them bore fruit, for Sperm brought no food for the zygote, and only the largest Eggs could make up the shortfall. And these grew yet larger in the fullness of time.
And God put the Eggs into a womb, and said, "Wait here: for thy bulk has made thee unwieldy, and Sperm must seek thee out in thy chambers. Henceforth shalt thou be fertilized internally." And it was so.