Skip to content

Instantly share code, notes, and snippets.

View MinSomai's full-sized avatar
🇳🇵
from the land of Mountains, Nepal. Namaste!

Min Somai MinSomai

🇳🇵
from the land of Mountains, Nepal. Namaste!
View GitHub Profile
@MinSomai
MinSomai / copy.sh
Created May 8, 2022 20:02
Copy from current directory to another drive - exclude node_modules, etc | linux
rsync -rv --exclude=node_modules --exclude=site-packages ./myDirectory/* /media/USERNAME/MOUNT_NAME/PATH_TO_DIRECTORY
@MinSomai
MinSomai / docker-compose.yml
Created April 10, 2022 12:01
Initial SQL data import - Docker MySQL
mysql:
image: mysql:latest
container_name: mysql-container
ports:
- 3306:3306
volumes:
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: name_db
@MinSomai
MinSomai / connectHTMLelements_SVG.png
Created April 6, 2022 07:16 — forked from alojzije/connectHTMLelements_SVG.png
Connect two elements / draw a path between two elements with SVG path (using jQuery)
connectHTMLelements_SVG.png
@MinSomai
MinSomai / MySql-5.6-installation guide.md
Created April 6, 2022 05:01 — forked from vinodpandey/MySql-5.6-installation guide.md
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
@MinSomai
MinSomai / App.vue
Created March 24, 2022 07:20
Vue show viewport height and width in title for debugging with vueuse
<script>
import { ref, computed, onMounted } from "@vue/composition-api";
import { useWindowSize, useTitle } from "@vueuse/core";
export default {
setup() {
const { width, height } = useWindowSize();
const title = computed(() => {
return `w: ${width.value} h: ${height.value}`;
});
@MinSomai
MinSomai / index.md
Created February 9, 2022 07:33 — forked from lcherone/index.md
Template variable replacement, js and php

In PHP

<?php
$vars = [
  'name' => 'Loz'
];

$template = 'Hello {{ name }}!';
@MinSomai
MinSomai / App.vue
Created December 28, 2021 07:02
Vuetify - make components global
<template>
<v-app>
<!-- other components ... -->
<confirm ref="confirm"></confirm>
</v-app>
</template>
<script>
import confirm from "./components/confirm.vue";
export default{
{
"todays-price": [
{
"id": 1366730,
"businessDate": "2021-11-25",
"securityId": 2790,
"symbol": "ACLBSL",
"securityName": "Aarambha Chautari Laghubitta Bittiya Sanstha Limited",
"openPrice": 1453,
"highPrice": 1453,
@MinSomai
MinSomai / .vimrc
Created November 15, 2021 10:50
Firacode Icons for nerdtree-git-plugin
" using windows character map
" Nerdtree git plugin
let g:NERDTreeGitStatusIndicatorMapCustom = {
\ 'Modified' :'☼',
\ 'Staged' :'+',
\ 'Untracked' :'U',
\ 'Renamed' :'➡',
\ 'Unmerged' :'‗',
\ 'Deleted' :'X',
\ 'Dirty' :'╳',
@MinSomai
MinSomai / Problem Solving : Golang | Left Rotation - Hackerrank.go
Last active June 22, 2021 17:07
Problem Solving : Golang | Left Rotation - Hackerrank.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
"strings"
)