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 / 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
@arn-ob
arn-ob / install-package-for-ubuntu-20-04.sh
Last active October 2, 2021 07:36
Install list of package for ubuntu 20.04
#!/bin/bash
# How i workable this package
#
# wget <from gist raw file>
# chmod +x install-package-for-ubuntu-20-04.sh && ./install-package-for-ubuntu-20-04.sh
# Issue:
# Getting Error while executing a .sh file: /bin/bash^M: bad interpreter
# sed -i -e 's/\r$//' ./ubuntu-20-04.sh
@arn-ob
arn-ob / OrdersComponent.tsx
Created September 2, 2021 10:54 — forked from mortezashojaei/OrdersComponent.tsx
Using laravel-echo in reactjs
import React, { FC } from 'react';
import { useSocket } from '@myapp/hooks';
import {Order} from '@myapp/models';
export const OrdersComponent: FC = () => {
const [orders,setOrders] = useState<Order[]>();
function addNewOrder(neworder:Order) {
@arn-ob
arn-ob / comment.md
Last active July 1, 2021 07:59
Documentation Comment Specification for the Standard Doclet

Documentation Comment Specification for the Standard Doclet

This document specifies the form of documentation comments recognized by the standard doclet for the javadoc tool, used to generate HTML API documentation.

@arn-ob
arn-ob / docker_wordpress.md
Created April 18, 2021 05:59 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@arn-ob
arn-ob / dowload.html
Last active April 5, 2021 08:43
Download Image from Source URL
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<!-- http://localhost:5500/ -->
<!-- https://www.flightexpert.com/img/dow/ramadancalender.jpg -->
<body>