Skip to content

Instantly share code, notes, and snippets.

View YogaSakti's full-sized avatar
❄️
Looking for winter intern

Yoga Sakti YogaSakti

❄️
Looking for winter intern
View GitHub Profile
@YogaSakti
YogaSakti / twitter-v2-stream.js
Created March 17, 2023 15:19
TwitterDev: we are announcing the deprecation of the v1.1 streaming statuses/filter endpoint, with a formal deprecation date of March 9, 2023. This completes the full retirement of v1.1 streaming endpoints (we previously announced the other components in April 2022). We encourage you to begin the migration process to the filtered stream endpoint…
const twitter = require('twitter-api-v2')
(async () => {
const client = new twitter.TwitterApi('YOUR_APP__TOKEN');
// const rules = await client.v2.streamRules();
// delete old rules
// if (rules.data?.length) {
// await client.v2.updateStreamRules({
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
contract Garuda {
address private owner;
constructor () {
owner = msg.sender;
}
receive() external payable {
selfdestruct(payable(owner));
@YogaSakti
YogaSakti / matic-selftx.js
Created November 23, 2022 06:42
activate polygon wallet
/* eslint-disable init-declarations */
/* eslint-disable radix */
/* eslint-disable no-continue */
const AlchemyWeb3 = require('@alch/alchemy-web3');
const delay = require('delay');
const provider = 'https://rpc-mainnet.matic.quiknode.pro'
const web3 = AlchemyWeb3.createAlchemyWeb3(provider);
const Ora = require('ora');
const spinner = new Ora();
@YogaSakti
YogaSakti / api.js
Created October 26, 2022 09:26
curl impersonate + curl generator
const { CurlGenerator } = require('curl-generator')
const shell = require('shelljs');
const baseProgram = `${process.cwd()}/curl_impersonate -sS`
const createCurlCommand = (url, method, authorization, body) => {
const params = { url, method,
headers: {
authority: 'aptos-mainnet-api.bluemove.net',
accept: 'application/json, text/plain, */*',
'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
---
version: "2.0"
services:
mongo:
image: mongo:latest
expose:
- port: 27017
to:
- global: true
{
"description": "Just a NFT for testing",
"external_url": "https://github.com/2pai/nft-erc721/blob/main/assets/2pai-japan.png",
"image": "https://github.com/2pai/nft-erc721/raw/main/assets/2pai-japan.png",
"name": "2Pai Japanese Edition"
}
@YogaSakti
YogaSakti / massa.sh
Last active November 11, 2021 20:01
massa auto buy roll
#!/bin/bash
DELAY=300 #in secs - how often restart the script
ROLL_PRICE=100
for (( ;; )); do
WALLET=$(massa-client wallet_info)
ADDRESS=$(echo -e $WALLET | grep -oP 'Address:\s*\K.*(?=\s+State)')
FINAL_BAL=$(echo -e $WALLET | grep -oP 'final balance:\s*\K.*(?=\s+candidate balance)')
@YogaSakti
YogaSakti / unfollow-non-followers-twitter.js
Created October 26, 2020 09:49 — forked from jalbam/unfollow-non-followers-twitter.js
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.
🌞 Morning 20 commits ██▎░░░░░░░░░░░░░░░░░░ 11.1%
🌆 Daytime 79 commits █████████▏░░░░░░░░░░░ 43.9%
🌃 Evening 70 commits ████████▏░░░░░░░░░░░░ 38.9%
🌙 Night 11 commits █▎░░░░░░░░░░░░░░░░░░░ 6.1%
@YogaSakti
YogaSakti / keybase.md
Last active September 12, 2019 02:51

Keybase proof

I hereby claim:

  • I am yogasakti on github.
  • I am anxieties (https://keybase.io/anxieties) on keybase.
  • I have a public key ASAG9s-J8Q2DLbHYwoLmCrM6TD-MhUEQRxm8ZBfF5Xwuago

To claim this, I am signing this object: