Skip to content

Instantly share code, notes, and snippets.

View pishangujeniya's full-sized avatar
:octocat:
Remote committer

Pishang Ujeniya pishangujeniya

:octocat:
Remote committer
View GitHub Profile
@pishangujeniya
pishangujeniya / install_microk8s.sh
Created March 4, 2023 18:59 — forked from khiemdoan/install_microk8s.sh
Install Microk8s on Ubuntu machine
# Install microk8s from the edge channel (Rancher requires Helm 2.15.1 or above)
sudo snap install microk8s --classic
# Enable useful plugins
sudo microk8s.enable dns dashboard storage ingress helm
# Allow running priviledged Pods (required by Rancher's `cattle-node-agent`)
sudo sh -c 'echo "--allow-privileged=true" >> /var/snap/microk8s/current/args/kube-apiserver'
sudo systemctl restart snap.microk8s.daemon-apiserver.service
# Setup and install Tiller (part of Helm)
@pishangujeniya
pishangujeniya / Helper Scripts.md
Last active December 6, 2022 04:44
Scrips which helps in daily routine work

Helper Scripts

Scrips which helps in daily routine work

upwork_unsave_jobs.js

This script helps to unsave all the saved jobs from Upwork

@pishangujeniya
pishangujeniya / VMWare NoGUI Headless .md
Created July 2, 2022 08:14
This powershell script helps to run VMWare virtual machine without GUI

VMWare No GUI Headless

This powershell script helps to run VMWare virtual machine without GUI

Works and tested with VMWare Workstation 16 Player

OpenVPN Access Server in Docker Container

Run following commands in cmd. Enter strong password when required.

docker volume create --name open-vpn-data-volume
docker run -v open-vpn-data-volume:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://vpn.domain.com
docker run -v open-vpn-data-volume:/etc/openvpn --rm -it kylemanna/openvpn ovpn_initpki
docker run -v open-vpn-data-volume:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN --restart always kylemanna/openvpn

Ask Laftan Anlamaz

Ask Laftan Anlamaz

@pishangujeniya
pishangujeniya / RoiPoolingConv2DTF.py
Created May 31, 2020 03:24
ROI Pooling Layer for Keras Tensorflow
"""
This code is copied and modified from the below repository
https://github.com/kbardool/keras-frcnn/blob/master/keras_frcnn/RoiPoolingConv.py
original license
kbardool/keras-frcnn is licensed under the
Apache License 2.0
A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
@pishangujeniya
pishangujeniya / Ubuntu-Mojave-Mac-OS-Theme.md
Last active October 18, 2024 10:06
Mac OS Mojave Theme for Ubuntu

Ubuntu To Mac OS Mojave theme

Mc OS Mojave Ubuntu Look alike


Pre-requisites

  • sudo apt update
  • sudo apt install gnome-tweaks
  • sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0
@pishangujeniya
pishangujeniya / xRDP-Ubuntu-Unity.md
Last active January 11, 2024 14:10
Configuring xRDP in Ubuntu with Unity as Desktop Environment

Configuring xRDP in Ubuntu with Unity as Desktop Environment

Run the following commands in the terminal

sudo apt-get --yes update

sudo apt install --yes xrdp
@pishangujeniya
pishangujeniya / reset-mysql-8-root-password-windows.md
Created December 5, 2019 18:04
Reset MySQL 8.0 root Password in Windows

Reset MySQL 8.0 root Password in Windows

  1. Stop the MySQL 8.0service from services
  2. Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open cmd
  3. Run mysqld --console --skip-grant-tables --shared-memory
  4. Open new cmd in the same path
  5. Run following commands
  6. mysql -u root
  7. select authentication_string,host from mysql.user where user='root';
  8. UPDATE mysql.user SET authentication_string='' WHERE user='root';