Skip to content

Instantly share code, notes, and snippets.

View arn-ob's full-sized avatar
☠️
__worker__

Arnob arn-ob

☠️
__worker__
View GitHub Profile
@arn-ob
arn-ob / normcore-llm.md
Created August 30, 2023 06:11 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@arn-ob
arn-ob / create-csv.sh
Created February 19, 2023 07:37 — forked from vaughany/create-csv.sh
Little bash script to create a CSV file containing many thousands of fake (but valid) URLs.
#!/bin/bash
# Each 'run' generates 10 unique URLs, so if RUNS=10 you'll get 100 lines out.
# Requires `gpw` to be installed, as a source for nice, random strings.
FILE=large-test.csv
RUNS=10000
if test -f "$FILE"; then
truncate -s 0 $FILE
@arn-ob
arn-ob / prepareElastic.js
Created January 4, 2023 12:39 — forked from stekhn/prepareElastic.js
Creates and prepares an Elasticsearch index, using the Node.js client. Closes the index before putting settings and mappings. The response and error handlers are optional, remove them if necessary.
var elastic = require('elasticsearch');
var client = new elastic.Client({ host: 'localhost:9200' });
var index = 'myindex';
var type = 'document';
(function init() {
Promise.resolve()
.then(deleteIndex, handleError)
@arn-ob
arn-ob / filebeat-autodiscover-kubernetes.yml
Created November 22, 2022 08:50 — forked from exekias/filebeat-autodiscover-kubernetes.yml
Example of autodiscover usage in filebeat-kubernetes.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
namespace: kube-system
labels:
k8s-app: filebeat
kubernetes.io/cluster-service: "true"
data:
@arn-ob
arn-ob / refreash_helm.sh
Created November 9, 2022 06:01 — forked from naotookuda/refreash_helm.sh
How to refresh "helm" cache ?
# !/bin/bash
# Remove all files in these directories.
rm -rf ~/.helm/cache/archive/*
rm -rf ~/.helm/repository/cache/*
# Refreash repository configurations
helm repo update
#That's all.
#If you "helm search" next time, you can find newest stable charts in repository.
@arn-ob
arn-ob / introrx.md
Created August 8, 2022 11:37 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
1. sudo sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2. sudo ln -s $HOME/.zshrc /root/.zshrc
If you have .zshrc file first remove these, and then do the system link command required to create it again
sudo ln -s $HOME/.zshrc /root/.zshrc
3. sudo ln -s $HOME/.oh-my-zsh /root/.oh-my-zsh
4. sudo chmod 744 /root/.zshrc
5. chsh -s $(which zsh) $(whoami)
@arn-ob
arn-ob / README.md
Created January 10, 2022 11:11 — forked from mashdot/README.md
Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)

TOSHINE-BACULA

Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.

Bacula Debian Installation.

@arn-ob
arn-ob / cross-origin-local-storage.js
Created November 7, 2021 07:01 — forked from buren/cross-origin-local-storage.js
Cross origin local storage sharing example (using an iframe and postMessage)
const CrossOriginLocalStorage = function(currentWindow, iframe, allowedOrigins, onMessage) {
this.allowedOrigins = allowedOrigins;
let childWindow;
// some browser (don't remember which one) throw exception when you try to access
// contentWindow for the first time, it works when you do that second time
try {
childWindow = iframe.contentWindow;
} catch(e) {
childWindow = iframe.contentWindow;
@arn-ob
arn-ob / moment-js-timezones.txt
Created October 18, 2021 07:25 — forked from diogocapela/moment-js-timezones.txt
List of All Moment.js Timezones
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau