Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Load all diffs
// @namespace http://tampermonkey.net/
// @version 2024-04-22
// @description try to take over the world!
// @author Czarek Nakamoto <cyjan@mrcyjanek.net>
// @match https://github.com/*/files
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
@MrCyjaneK
MrCyjaneK / i.sh
Last active September 20, 2021 15:57
monero-gui-checkinstall
#!/bin/bash
cd monero-gui/build/release/bin/
VERSION=$(./monerod --version | tr '()' "\n" | head -2 | tail -1 | tr -d 'v')
for i in monero-blockchain-ancestry monero-blockchain-depth monero-blockchain-export monero-blockchain-import monero-blockchain-mark-spent-outputs monero-blockchain-prune monero-blockchain-prune-known-spent-data monero-blockchain-stats monero-blockchain-usage monero-gen-ssl-cert monero-gen-trusted-multisig monero-wallet-cli monero-wallet-gui monero-wallet-rpc monerod;
do
echo -n -e ".PHONY: install\n" > Makefile
echo -n -e "install:\n" >> Makefile
echo -n -e "\tmkdir -p /bin || true\n" >> Makefile
echo -n -e "\tcp $i /bin/$i\n" >> Makefile
if [[ "$i" == "monero-wallet-gui" ]];
@MrCyjaneK
MrCyjaneK / config.json
Last active August 16, 2021 15:57
xmrig-setup
{
"autosave": false,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [
{
"coin": null,
"algo": null,
"url": "mine.c3pool.com:13333",
@MrCyjaneK
MrCyjaneK / index.php
Created July 24, 2021 16:41
5sim.net get cheapest price
<?php
$prices = json_decode(file_get_contents("https://5sim.net/v1/guest/prices"));
$what = 'telegram';
$endprice = [];
foreach ($prices as $key => $value) {
if (!isset($value->$what)) continue;
$endprice[$key] = $value->$what;
}
$min = 9999;
@MrCyjaneK
MrCyjaneK / index.php
Last active July 13, 2020 18:47
Generate calendar in php
<?php
// My target is to create script to generate something like this:
//
// ------------------------
// | January |
// | s m t w t f s |
// | 1 2 3 4 |
// | 5 6 7 8 9 10 11 |
// | 12 13 14 15 16 17 18 |
// | 19 20 21 22 23 24 25 |
#!/bin/bash
time1="$( date +"%r" )"
install_ubuntu () {
directory=ubuntu-fs
UBUNTU_VERSION=20.04
if [ -d "$directory" ];
then
first=1
echo "[${time1}] [WARNING]: Skipping the download and the extraction, remove $directory to reinstall"
@MrCyjaneK
MrCyjaneK / get_all.sh
Last active April 9, 2020 14:02
Extract android tor static binary (latest)
#!/bin/bash
DONE=0
while true;
do
num=$SECONDS
min=0
hour=0
day=0
if((num>59));then
((sec=num%60))

Keybase proof

I hereby claim: * I am mrcyjanek on github. * I am mrcyjanek (https://keybase.io/mrcyjanek) on keybase. * I have a public key ASB6JlkWWVP5d_YabxfvZdy2x4yJyGuODrYrAydW6Dt5Hwo To claim this, I am signing this object:

{   "body": {     "key": {       "eldest_kid": "01207a2659165953f977f61a6f17ef65dcb6c78c89c86b8e0eb62b032756e83b791f0a",       "host": "keybase.io",       "kid": "01207a2659165953f977f61a6f17ef65dcb6c78c89c86b8e0eb62b032756e83b791f0a",       "uid": "72fd0e005142c096633e811625a62919",       "username": "mrcyjanek"     },     "merkle_root": {       "ctime": 1578582513,       "hash": "ff88df190ea9636d359624130a631ab6de602358a29598c19936ae6b7464e49fdd45420c49531ad9083a80da80189fd9eebcb5351cfad96e198867fcb257daac",       "hash_meta": "b910d88ec6338efed3e73be3ee65bf37b08b561e7d1f5987669ad48975e19b2b",       "seqno": 14155072     },     "service": {       "entropy": "Wjemw/oIQMcRh5u5EJTpOiGW",       "name": "github",       "username": "mrcyjanek"     },     "type": "web
@MrCyjaneK
MrCyjaneK / gist:bae7c016827d468d60d0fc84343bd54a
Created December 10, 2019 11:14
fish line to convert image to translated plaintext
tesseract image1.jpg stdout > input.txt && tgecho (trans :pl (tr '\n' '-------------' < input.txt) -show-original N -e bing) image1.jpg; rm input.txt
@MrCyjaneK
MrCyjaneK / index.js
Created November 3, 2019 20:32
NodeJS 10kHits browser
(async () => {
const puppeteer = require('puppeteer');
const fs = require('fs').promises
if (process.argv[2] == "new") {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('https://www.10khits.com/');
await page.waitFor(5000);
await page.goto('https://www.10khits.com/login');
await page.waitFor(5000);