This file contains 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
#!/bin/bash | |
# Number of iterations | |
count=10 | |
# Screen dimensions (example: 1080x1920) | |
width=1080 | |
height=1920 | |
# Calculate center |
This file contains 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
#!/bin/bash | |
# Number of iterations | |
count=10 | |
# Screen dimensions (example: 1080x1920) | |
width=1080 | |
height=1920 | |
# Start and end coordinates for swipe |
This file contains 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
{ | |
"name": "solanaTokenHolders", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "node index.js" | |
}, | |
"keywords": [], | |
"author": "", |
This file contains 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
List of domains that are registered with squarespace and thus could be vulnerable: | |
celer.network | |
pendle.finance | |
karak.network | |
compound.finance | |
hyperliquid.xyz | |
dydx.exchange | |
thorchain.com | |
threshold.network |
This file contains 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
// exporting from a bs58 private key to an Uint8Array | |
// == from phantom private key to solana cli id.json key file | |
// npm install bs58 @solana/web3.js | |
const web3 = require("@solana/web3.js"); | |
const bs58 = require('bs58'); | |
let secretKey = bs58.decode("[base58 private key here]"); | |
console.log(`[${web3.Keypair.fromSecretKey(secretKey).secretKey}]`); | |
// exporting back from Uint8Array to bs58 private key |
This file contains 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
import { createSetAuthorityInstruction, AuthorityType } from '@solana/spl-token'; | |
import { Transaction } from '@solana/web3.js'; | |
const instruction = createSetAuthorityInstruction( | |
token.publicKey, | |
closeAuthority.publicKey, | |
AuthorityType.CloseAccount, // AuthorityType.MintTokens | AuthorityType.FreezeAccount | ... | |
null | |
); |
This file contains 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
package com.straucorp.core; | |
import android.app.ActivityManager; | |
import android.content.ComponentName; | |
import android.content.Context; | |
import android.os.Handler; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Objects; |
This file contains 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
package com.straucorp.datastorepreferences | |
/** | |
* @author Andre Straube - Created on 29/08/2021 | |
*/ | |
import android.content.Context | |
import androidx.datastore.core.DataStore | |
import androidx.datastore.preferences.SharedPreferencesMigration | |
import androidx.datastore.preferences.core.Preferences | |
import androidx.datastore.preferences.core.intPreferencesKey |
This file contains 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
package com.github.astraube | |
import android.util.Log | |
import java.io.File | |
/** | |
* @author Andre - Created on 13/07/2021 | |
*/ | |
object RootChecker { |