Skip to content

Instantly share code, notes, and snippets.

View usametov's full-sized avatar

Ulan Sametov usametov

  • Asta Nova Enterprise Solutions
View GitHub Profile
@usametov
usametov / rust-xp-01-s3.rs
Created May 10, 2024 02:12 — forked from jeremychone/rust-xp-01-s3.rs
Rust Quick Example to connect to S3 and Minio bucket server
#![allow(unused)] // silence unused warnings while exploring (to comment out)
use std::{error::Error, str};
use s3::bucket::Bucket;
use s3::creds::Credentials;
use s3::region::Region;
use s3::BucketConfiguration;
// Youtube Walkthrough - https://youtu.be/uQKBW8ZgYB8
@usametov
usametov / rsakeypairgen.clj
Created April 13, 2024 22:36 — forked from postspectacular/rsakeypairgen.clj
RSA keypair generator w/ Clojure (requires Bouncycastle & unlimited JCE). Based on bundled example (org.bouncycastle.openpgp.examples.RSAKeyPairGenerator)
;; usage:
;;
;; (-> (rsa-keypair 2048)
;; (generate-secret-key "alice@example.org" "hello")
;; (export-keypair "alice.pub" "alice.sec" true))
(import
'[java.util Date]
'[java.security SecureRandom KeyPair KeyPairGenerator]
'[org.bouncycastle.jce.provider BouncyCastleProvider]
@usametov
usametov / ssh2hitron.sh
Created April 8, 2024 01:55 — forked from breyer/ssh2hitron.sh
Getting ssh access to HITRON cable modem
#!/bin/bash
#HITRON=10.10.2.1
HITRON=192.168.100.1
USER=app
PASSWORD="com8&#wDs2*1er"
OPTIONS="-o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ServerAliveInterval=5 -o ServerAliveCountMax=1"
echo Password of $USER $PASSWORD
while [ 1 ]
do
echo connect...
@usametov
usametov / github_graphql_api_client.clj
Created March 18, 2024 20:46 — forked from lagenorhynque/github_graphql_api_client.clj
A minimal GitHub GraphQL API client implemented as a babashka (Clojure) script
#!/usr/bin/env bb
(ns github-graphql-api-client
(:require
[babashka.curl :as curl]
[cheshire.core :as cheshire]
[clojure.pprint :refer [pprint]]))
(def auth-token (System/getenv "AUTH_TOKEN"))
(def graphql-query
@usametov
usametov / devops_training.txt
Created March 9, 2024 20:23 — forked from ssmythe/devops_training.txt
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@usametov
usametov / wiki-100k.txt
Created March 9, 2024 20:22 — forked from h3xx/wiki-100k.txt
Wictionary top 100,000 most frequently-used English words [for john the ripper]
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources:
@usametov
usametov / wallet connect
Created February 12, 2024 21:36 — forked from judeebene/wallet connect
This is a sample cardano wallet connect for Nami
import React, { useState } from 'react';
import { useModel } from 'umi';
import { Avatar, Button, Col, Modal, Row, Statistic } from 'antd';
import Loader from '../../utils/loader';
import type Paginate from '@/interfaces/Paginate';
import type { WalletError } from '@/components/WalletConnect/WalletErrors';
@usametov
usametov / derive_cardano_wallet_keys.sh
Created February 12, 2024 21:33 — forked from pintaric/derive_cardano_wallet_keys.sh
Shell script for deriving key pairs/addresses from a Cardano wallet recovery phrase
#!/bin/bash
# -------------------------------------------------------------------------------------------------
# Author: Thomas Pintaric <thomas@pintaric.org>
# Version: 1.0.0
# SPDX-License-Identifier: 0BSD
# -------------------------------------------------------------------------------------------------
# USAGE: ./derive_cardano_wallet_keys.sh [flags] args
# flags:
# -r,--recovery_phrase: text file containing your wallet's recovery phrase (default: 'recovery-phrase.txt')
# -n,--[no]new_mnemonic: generate new 24-word mnemonic (default: false)
@usametov
usametov / gist:ec6c42de3424a4fc595202d9846bd7d6
Created June 11, 2023 01:41 — forked from scottdw/gist:26e2491e53ebc28649f5
Discrete fourier transform clojure and jtransforms
(ns scottdw.feip.core
(:import [java.awt Image]
[java.awt.image BufferedImage]
[org.imgscalr Scalr]
[org.jtransforms.fft DoubleFFT_2D RealFFTUtils_2D])
(:require [mikera.image.core :as img]
[mikera.image.colours :as ic]
[clojure.core.matrix :as mat]))
(defn gen-p-img []
@usametov
usametov / get-pubmed.clj
Last active July 7, 2022 11:16 — forked from borkdude/scrape_tables.clj
get list of pubmed baseline files
(ns scrape
(:require [babashka.pods :as pods]
[clojure.walk :as walk]))
(pods/load-pod 'retrogradeorbit/bootleg "0.1.9")
(require '[babashka.curl :as curl])
(def pubmed-html (:body (curl/get "https://ftp.ncbi.nlm.nih.gov/pubmed/baseline/")))