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

Manage REPL session

, m . and , . calva.jackInOrConnect jack-in and connect menu commandPaletteeditor/context

, m c and , ” calva.connect Connect to a Running REPL Server in the Project Ctrl Alt C Ctrl Alt C | |

@usametov
usametov / ubuntu-post-install.md
Created July 9, 2021 00:26 — forked from practicalli-johnny/ubuntu-post-install.md
Ubuntu post install - including Raid setup
@usametov
usametov / ubuntu-install-backup
Created July 9, 2021 00:22 — forked from practicalli-johnny/ubuntu-install-backup
a version that I was editing and lost track of what I changed.
# Ubuntu install
Also see earlier install guide https://gist.github.com/jr0cket/7655cf6f0dcd889ca0dbb0edb2b544c2
## X1 Extreme installation
Download Ubuntu server iso image
burn image to usb
Enter and f1 to open bios config
- remove secure boot
[convert]::ToBase64String((Get-Content -path "your_file_path" -Encoding byte))
@usametov
usametov / string.clj
Created June 30, 2021 03:40 — forked from punit-naik/string.clj
Levenshtein Distance function implemented in Clojure
(defn levenshtein-distance
"Finds the percentage of match (reversed levenshtein distance & normalised)
between two strings"
[s1 s2]
(let [similarity (atom 0)
edit-map (atom {})]
(doseq [i (range (count s1))]
(let [edit (atom (if (zero? i) 0 i))]
(doseq [j (range (count s2))]
(let [e (if (= (.charAt s1 i) (.charAt s2 j)) 0 1)]
@usametov
usametov / rotate-video.sh
Created June 13, 2021 01:45 — forked from ViktorNova/rotate-video.sh
Rotate a video with FFmpeg (100% lossless, and quick)
$INPUTVIDEO='input.mp4'
$OUTPUTVIDEO='output.mp4'
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
;; This simnle tutorial is using AWS CDK (Cloud Development Kit, JavaScript flavor),
;; Clojure CLI (tools.deps), Cognitect Lab's aws-api, and Oracle's JDBC library.
;; deps.edn file looks like this:
{:deps {org.clojure/clojure {:mvn/version "1.10.1"} org.clojure/data.json {:mvn/version "1.0.0"}
com.amazonaws/aws-lambda-java-core {:mvn/version "1.2.0"}
com.cognitect.aws/api {:mvn/version "0.8.456"} com.cognitect.aws/endpoints {:mvn/version "1.1.11.753"} com.cognitect.aws/s3 {:mvn/version "784.2.593.0"} com.cognitect.aws/sqs {:mvn/version "770.2.568.0"} com.cognitect.aws/secretsmanager {:mvn/version "793.2.626.0"}
com.oracle.database.jdbc/ojdbc10 {:mvn/version "19.3.0.0"} seancorfield/next.jdbc {:mvn/version "1.0.409"}}
:paths ["src" "classes"]
@usametov
usametov / c4w3_colab_t5_squad_model.ipynb
Last active June 4, 2021 16:36
C4W3_Colab_T5_SQuAD_Model.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@usametov
usametov / c4w3_colab_bert_loss_model.ipynb
Created June 2, 2021 04:49
C4W3_Colab_BERT_Loss_Model.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@usametov
usametov / readability.js
Created June 1, 2021 04:00 — forked from jakedahn/readability.js
Readability.js
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
var dbg = (typeof console !== 'undefined') ? function(s) {
console.log("Readability: " + s);
} : function() {};
/*
* Readability. An Arc90 Lab Experiment.
* Website: http://lab.arc90.com/experiments/readability