Skip to content

Instantly share code, notes, and snippets.

View yrsdi's full-sized avatar
👋
Hi

Yadi Rosadi yrsdi

👋
Hi
View GitHub Profile
@yrsdi
yrsdi / erlc_outside.sh
Created December 18, 2022 11:16
Compiling outside the Erlang Shell
erlc <filename>.erl
erlc --noshell -s <module> <function> -s init stop
@yrsdi
yrsdi / clojure-learning-list.md
Created December 4, 2022 00:06 — forked from ssrihari/clojure-learning-list.md
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
DELETE FROM table
ORDER BY id ASC
LIMIT ((SELECT COUNT(*) FROM table ) - N Data)
@yrsdi
yrsdi / getting-started-carbon-lang.md
Last active November 10, 2022 11:48
Getting Started with Carbon Language on Ubuntu 22

Prerequiresite before installation

  1. Homebrew
  2. Bazel
  3. LLVM
  4. Carbon Explorer

Install Homebrew on Ubuntu 22.04

  1. Run System Update sudo apt update -y
@yrsdi
yrsdi / php-oci-blob-storedproc.md
Created May 20, 2022 07:34 — forked from umidjons/php-oci-blob-storedproc.md
Execute stored procedure with BLOB parameter in PHP with OCI

Execute stored procedure with BLOB parameter in PHP with OCI

<?php
define('DB_USER','user1');
define('DB_PSWD','pswd1');
define('DB_CONN_STR','MYTNS');
define('DB_CHARSET','AL32UTF8');
@yrsdi
yrsdi / test.php
Created November 12, 2021 14:11 — forked from scribu/test.php
Simulate threads in PHP using only proc_open() and co.
<?php
include __DIR__ . '/threads.php';
$commands = array();
for ( $i=0; $i<10; $i++ ) {
$commands[] = "bash -c 'sleep `shuf -i 1-5 -n 1`; echo $i'";
}
@yrsdi
yrsdi / ansible_ad_hoc_inventories.md
Created August 3, 2021 03:12 — forked from alces/ansible_ad_hoc_inventories.md
Using Ad-hoc Inventories in Ansible

In case you want to run ansible (or ansible-playbook) command against a set of hosts that makes sense only for one run, you can don't bother to create one-time inventory file, but simply define a comma-separated list of hosts as argument of --invertory option (or its short form that's simply -i) as follows:

ansible --inventory=myhost1,myhost2,myhost3 all -m setup -a 'filter=*name*'

(note that all in this command line stands for the target hostname)

If you have only one host to run your playbook against, your inventory string must ends with ,

@yrsdi
yrsdi / sync_to_github_through_ssh.md
Last active November 8, 2020 22:25
Sync to github through ssh

Generate a new SSH key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.

Test SSH key:

$ ssh -T git@github.com
Java Version Manager inspired by nvm (Node.js). Written in Go.- https://github.com/shyiko/jabba
sdkman - https://sdkman.io/usage