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 / clojurex-talks.org
Created July 9, 2021 00:35 — forked from practicalli-johnny/clojurex-talks.org
List of video presentations from the London Clojurians community
@usametov
usametov / bash_strict_mode.md
Created August 15, 2021 06:25 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@usametov
usametov / README.md
Created February 9, 2022 11:03 — forked from minhajuddin/README.md
Script to retrieve content from google cache
@usametov
usametov / save_snips.py
Last active September 22, 2024 04:23 — forked from knmkr/search_snpedia.py
Example for calling SNPedia API from python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import mwclient
from mwclient import Site
def save_snips(agent, site, path):
"""
http://snpedia.com/index.php/Bulk
https://mwclient.readthedocs.io/en/latest/user/page-ops.html
gets all snips from snpedia
@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/")))
@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 / 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 <[email protected]>
# 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 / 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 / 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 / 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)