Skip to content

Instantly share code, notes, and snippets.

View dPacc's full-sized avatar
:octocat:
超本能

Deepak dPacc

:octocat:
超本能
  • Abu Dhabi
  • 17:57 (UTC +04:00)
View GitHub Profile
@dPacc
dPacc / txt
Created July 30, 2020 06:20
Demo Gist
Demo Gist

Minikube

After you install minikube on a bare-metal server.

The default command to start the cluster is: minikube start --force --driver=docker

If you start, using the above command, the cluster wont be able to pull images from docker-hub as the network requests would be blocked.

To fix this, add the minikube and localhost IPs to the NO_PROXY IP list: set NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24

@dPacc
dPacc / ubuntuFix.md
Created August 29, 2021 08:45
Ubuntu Reinstall/Resize Partition Fix

Ubuntu Clone/Resize Partition Fix

Once you clone the OS, the boot time will be very slow as the UUID for the partitions and the GRUB bootloader would have changed.

Trouble Booting into Windows from GRUB menu

@dPacc
dPacc / UbuntuContextMenu.md
Created September 8, 2021 20:44
Adding to Ubuntu File Manager Context Menu (20.04+)

Ubuntu 20.04 Context Menu Edit

  • The FMA is installable from universe pocket since Ubuntu 19.04 (disco dingo, now EOL) and then on supported 20.04 LTS (focal fossa) with the command: sudo apt-get install filemanager-actions

  • Run fma-config-tool from your teminal to open FileManager-Actions Configuration Tool

  • Define a new action, under Action tab, Add your context label, for example "Open in Deepin"

  • Under command tab, add the path of the cmd, for example "/usr/bin/deepin-terminal"

@dPacc
dPacc / HADOOP_INSTALLTION.md
Created September 13, 2021 19:30
HADOOP INSTALLATION

Hadoop

  • Hadoop is a standard framework for processing and storing big data

  • It is designed to be deployed across a network of hundreds or even thousands of dedicated servers.

  • All these machines work together to deal with the massive volume and variety of incoming datasets.

  • For a small project, Hadoop can be installed in a single node mode.

@dPacc
dPacc / HIVE.md
Created September 14, 2021 07:18
Hive Installation

Requirements

  • Pre-installed Hadoop

Hive Installation

(1) Download hive tar:

  • wget http://archive.apache.org/dist/hive/h...

(2) Extract the tar file

@dPacc
dPacc / ML_Service_VS_Streamining.md
Created September 20, 2021 09:55
ML Web Service vs Streaming

Why choose Streaming Endpoints over Web Services?

Web services are great when you don’t have a lot of requests to serve at the same time. Not only that, but it is also a popular form of deployment because it’s the easiest and fastest solution. All you have to do is spin up a Flask service and you have a full functioning model. But, most large scale enterprises and consumer technologies, a Web Service deployment won’t suffice. The problems begin to occur when you have tons of data coming in every minute. You will see over time that your model will start failing and will send errors back. If you’re lucky and your model is layered on a Kubernetes architecture you can easily scale the number of pods more and more. This will cause you to eat up much more resources, and will likely require you to implement retries mechanism. Nevertheless, you’ll also need to store your inputs and outputs for

@dPacc
dPacc / ReactJenkins.md
Created May 17, 2022 10:32
CI/CD on self-hosted server using Jenkins for React

Jenkins CI/CD Pipeline

Part 1: Setting up the necessary configuration

(1) For Node.js to run you must install a Node.js plugin.

  • The plugin panel can be accessed through Manage Jenkins > Manage Plugins

  • Here select the available tab. Search for Nodejs, and click on the Install button.

@dPacc
dPacc / restoreSql.md
Created August 17, 2022 06:31
Restore SQL Dump in Postrgres
  • Connect to DB: psql -U postgres

  • Create a new DB: create database DB_NAME;

  • Connect to the DB: \c DB_NAME

  • To restore: \i DUMP_NAME.SQL

  • Now to view schemas in the DB: \dn

@dPacc
dPacc / ec2-express.md
Last active March 17, 2024 16:55
EC2 - ExpressJS Server Setup with Custom Domain