Skip to content

Instantly share code, notes, and snippets.

View jeka911's full-sized avatar

Jeka jeka911

View GitHub Profile
@jeka911
jeka911 / 3step.md
Created September 9, 2026 12:23 — forked from Haseeb-Qureshi/3step.md
3step

"3 step" + a link to a paper/article/report is standing shorthand for: read the full source (not just abstract or preview), then write one continuous summary in three layers of increasing length. Layer 1 is one paragraph: the whole piece at maximum compression, a complete stopping point on its own. Layer 2 is two paragraphs that continue from Layer 1 without restating it, adding the next tier of detail (mechanism, key evidence, how the result was produced). Layer 3 is three paragraphs that continue from Layer 2 (methodology specifics, numbers, context, limitations, implications). Every prefix (1, 1+2, 1+2+3) must read as a self-contained summary at its depth. Mark the three layers visibly so the reader can stop at a boundary: a short bold label on its own line before each layer ("Layer 1", "Layer 2", "Layer 3"). No other headers or formatting inside the layers. Nothing is repeated across layers; each only adds. Compression is the point; analysis serves it. Write in plain, direct sentences for a smart reader o

@jeka911
jeka911 / gist:24c98e6ad7983dde8fdac1ddcdcf5117
Created December 10, 2024 18:57
producing_telemetry_subscribers_error.move
module pckgg::icon
{
use sui::url::{Self, Url};
public(package) fun get_icon_url(): Url {
return url::new_unsafe_from_bytes(b"data:image/png;base64,asdasoAAAANSUhEUgAAARMAAAENCAMAAAAbq3FhAAAA81BMVEUNLa/////+/v/6/fr09vbp6/Cd+bTL0tyfr/CtrrJO3nKWmpcL6UYI60MH7TkS5EgY4EkI6UAg2k4H6j0L5kMK6DoJ50AL5j0m1FAO4z8tzVkW3EN0h9UW0kE2uGEnw00Wyj6KeH0PwTYnrUkVuTk1loZFhn8lnkoMri62TF1DbMIljUoLnyhhYmQmd3ALjiQnV7WAPkwTeSkiY2AjUk9DQ0gYPbkHUHcLXB5ILTsKPIQRKs0QK8cPLL8QKcYWQD4QMJ0PI34RLTIeIC0HMBEYHSouEiAZGikWGScTGSgXFycWGCIaFSUMHB8UFSINDhQGBgdUr7xfAABOl0lEQVR42ryX3W7jOBKFZVGCHPReDPpq0CsEyEV6AS5iEOiJDEei1olgkCId2e//NHuqSFvyT3Y905k+dlNkiW2zvhyW6OTZB7l4NcafyznnrwTHsIm922U2/ja5nj7e+tf1L9Nr8uwmssYaQ7naozh7Tn84Cn0XFDG6U43/x7upLIQoPsB0U7a4bLdIfIvhiTC7dYBHaAI3c7YAjwJRDsSTQEiAIAZIDoQYsNqAfgNaYQr4j6PAGTQAVcBQQKIA32gB1gB4w+gj+Acr/2T/kvhwGbDXA15Y+sKBCfQB/9IOAFQAQHx3hc1+x8XOB39BMmFFYBknwMisSQGo589vWeIEVe41CRWKhHyXhV2FJgCNVsz7+pcQYGsIsBICaBfg+v/6/PwiFDizCXSR8U7Tsv1b+LH8rQLMV0YALhvn/TUU/kDCb77DBxSAkAA/6vhnA4BPgIVTAOn7nAWg+u+KYpQApwlA
@jeka911
jeka911 / SuiMove.sh
Last active December 7, 2024 23:18
Sui Move Dev On Linux Cheatsheet
# Local Sui network
# Docs: https://docs.sui.io/build/sui-local-network
# Upgrade local:
brew install sui
## Local explorer: https://explorer.polymedia.app/?network=local
# Install local validator:
brew install sui
@jeka911
jeka911 / setupmongo.sh
Last active August 11, 2021 10:50
Install and setup mongodb server on AWS Ubuntu 18.04 EC2 Instance
#!/bin/bash
#Makes it public and set up authentication
echo "Installing repo"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
echo "Installing binaries"
sudo apt-get update
@jeka911
jeka911 / ainstall.sh
Last active August 16, 2018 04:17
Haproxy 1.6 node server balancer on Ubuntu, works on aws
sudo add-apt-repository ppa:vbernat/haproxy-1.6
sudo apt-get update
sudo apt-get install haproxy
# restart service
sudo service haproxy restart
# configuration file
sudo nano /etc/haproxy/haproxy.cfg
@jeka911
jeka911 / index.js
Last active October 4, 2018 09:28
CloudWatch to AWS Lambda to Slack Channel Alerts and Charts. Posts CloudWatch Alerts via SNS topic via Lambda function to Slack channel. And draws charts for CPUUtilization metrics(both for EC2 abd RDS).
////// Save as index.js and upload it to Lambda as zip archive with node_modules directory. After:
////// npm install aws-cloudwatch-chart
////// npm install request
////// no need to upload aws-sdk module
////// Don't forget to change API keys here.
////// License: MIT
////// Docs:
@jeka911
jeka911 / backup.php
Last active August 16, 2018 04:18
Backup wordpress installation and blog database to pbworks workspace
<?php
//// usage - php backup.php domain
$network = 'network';
$workspace = 'workspace';
$apikey = '...........';
$tmp_path = sys_get_temp_dir(); //// should be writable
define( 'ABSPATH', dirname(__FILE__) . '/' );
//// create empty wp-settings.php file (wp config tries to find it)
@jeka911
jeka911 / add_apache_domain.sh
Last active August 29, 2015 14:20
SH to add apache domain to dynamic virtual hosts
#!/bin/bash
run()
{
echo "Adding new apache domain"
if [ "$(id -u)" != "0" ]; then
echo "Sorry, but this script should be executed by root only. Try: sudo ./add_apache_domain.sh"
return
fi
@jeka911
jeka911 / apache2.conf
Last active August 29, 2015 14:05
Apache apache2.conf for localhost
SetEnv localhost localhost
ServerName localhost
Mutex file:${APACHE_LOCK_DIR} default
PidFile ${APACHE_PID_FILE}
Timeout 300
@jeka911
jeka911 / vklike.js
Created April 28, 2014 17:17
Do like avatars of every vk user on search page
var l = document.getElementsByClassName('img'); for (var k in l) if (typeof(l[k].onmouseover) == 'function') l[k].onmouseover();
var els = document.getElementsByClassName('search_bigph');
var cur_els = 0;
setTimeout(next_cur_el, 5000);
function next_cur_el()
{
if (typeof(els[cur_els]) == 'undefined') return;
els[cur_els].click();
var r1 = Math.random() * (3000 - 500) + 500;
var r2 = Math.random() * (5000 - 2000) + 2000 + r1;