Skip to content

Instantly share code, notes, and snippets.

View cheeseonamonkey's full-sized avatar
😅
Sweating, and smiling

Alexander H cheeseonamonkey

😅
Sweating, and smiling
View GitHub Profile
@cheeseonamonkey
cheeseonamonkey / (cmd) EncryptMyWorkFolder.bat
Last active January 31, 2022 03:44
My collection of cmd and shell scripts
@echo off
echo.
echo.
SET /P inp= (Z)ip or (U)nzip:
echo entered:
echo "%inp%"
@cheeseonamonkey
cheeseonamonkey / ExamplePartOfActivity.java
Created January 31, 2022 10:49 — forked from cardil/ExamplePartOfActivity.java
MultiSelectList Preference Settings
private static OnPreferenceChangeListener autoOnChangeListener = new OnPreferenceChangeListener() {
@Override
public boolean onPreferenceChange(Preference rawPreference, Object newValue) {
List<CharSequence> selected = Arrays.asList((CharSequence[]) newValue);
if (selected.contains("1")) {
// do some work
}
return true;
}
"$$$,0,000,0241CX,039,0522CX,0999COIN,0XBTC,0XBUTT,0XC,0XCX,0XECH,0XESV,0XETC,0XETD,0XETH,0XGAS,0XK,0XMKR,0XMR,0XPAD,0XZX,1,1000HOKK,1000KISHU,1000SHIB,1000SHIB2,1000X,1000X2,1000XMAS,100K,100N,100T,100W,100WETH,100WRATIO,100X,10EX,10MINS,10MT,10SET,10SETBEP20,10U,1111,112358,1211CX,123,13213,1337,1667591279645C,16B,17,1810CX,18C,1913,1950,1951,1952,1953,1955,1956,19JA,1AI,1ART,1B,1BCH,1BEAM,1BIT,1BOX,1BSCBUSD,1CC,1CHAD,1CN,1CNY,1COVCX,1CT,1DAO,1DOGE,1EARTH,1ECO,1FLR,1FLY,1FOR,1GOLD,1GOONRICH,1GT,1HTMOON,1HTS,1INCH,1INCH12M,1INCH1D3L,1INCH1D3S,1INCH2,1INCH3L,1INCH3R,1INCH3S,1INCH3X,1INCH5L,1INCH5S,1INCHBEP20,1INCHDOWN,1INCHPUNCH,1INCHUP,1MC,1MEJ,1MIL,1ML,1MS,1MT,1NFT,1ONE,1PECO,1PEGG,1POOL,1PT,1PX,1ROT,1SG,1SHIB,1SOL,1SOL2,1SQ,1ST,1STMILLI,1SWAP,1TRC,1TREE,1UP,1UP2,1WO,1X2,2001,2021,2022,20222,2022COIN,2022DAO,2022M,2030,2030FLOKI,2032DOGE,2121,22,222,2222,2248,22G,24K,2BASED,2CHAINLINKS,2CRZ,2CRZERC20,2DAO1C,2DOGE,2G1C,2GIVE,2GO,2GOSHI,2GT,2KEY,2LC,2ND,2OMB,2PACINU,2PX,2SHARES,2X2,2XDN,300,300FIT,307,314,33W
@cheeseonamonkey
cheeseonamonkey / gist:2987cd24b960d8b4e9b8d3a494110f73
Last active February 20, 2022 23:07
Stupid fetch (nomics crypto API)
<!DOCTYPE html>
<html>
<body>
<script>
//==================
//all possible valid symbols lol
let strAll =
<html lang="en" data-kantu="1">
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" type="image/png" href="https://cpwebassets.codepen.io/assets/favicon/apple-touch-icon-5ae1a0698dcc2402e9712f7d01ed509a57814f994c660df9f7a952f3060705ee.png">
<meta name="apple-mobile-web-app-title" content="CodePen">
<link rel="shortcut icon" type="image/x-icon" href="https://cpwebassets.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico">
<html>
<p id="q1"><strong>1. What is the form of government of the United States? </strong>(<a aria-describedby="q1" data-entity-substitution="media" data-entity-type="media" href="https://www.uscis.gov/sites/default/files/document/audio/128_2020_Civics_Test_English_001.mp3"
type="audio/mpeg; length=361831" data-lang="en">Play audio<span class="file-info"> (MP3, 353.35 KB)</span></a>)</p>
<ul>
<li>Republic</li>
<li>Constitution-based federal republic</li>
<li>Representative democracy</li>
@cheeseonamonkey
cheeseonamonkey / Android.md
Created April 18, 2022 12:43
kotlin extensions

General

code ### check permission ``` fun Activity.hasPermission(permission: String): Boolean { return ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED } ```
package com.smol.send.api.mvc.controllers
import com.smol.send.api.repositories.MessageRepository
import com.smol.send.api.mvc.models.Message
import org.springframework.web.bind.annotation.*
import javax.validation.Valid
@RestController
@RequestMapping("/api")
import java.security.*
import org.pgpainless.*
import org.pgpainless.key.generation.type.rsa.RsaLength
fun main() {
println("\n_________________________\nHello beautiful! ;)\n_________________________\n")
/*
//keypair no libraries
import org.bouncycastle.openpgp.PGPPublicKey
import java.security.*
import org.pgpainless.*
import org.pgpainless.key.generation.type.rsa.RsaLength
import org.pgpainless.key.util.KeyRingUtils
import java.util.*
fun main() {
println("\n_________________________\nHello beautiful! ;)\n_________________________\n")