Skip to content

Instantly share code, notes, and snippets.

View Lipton2777's full-sized avatar
🎯
Focusing

Lipton Ahammed Lipton2777

🎯
Focusing
  • BJIT Limited | House # 5/B, Road No. 2/E,
  • Dhaka, Bangladesh
View GitHub Profile
@Lipton2777
Lipton2777 / services.sh
Created January 27, 2022 10:11 — forked from siennathesane/services.sh
Basic service interface for Kubernetes interfaces with SystemD.
#!/bin/sh -e
KUBELET=kube-kubelet.service
PROXY=kube-proxy.service
CONTAINERS=docker.service
startstop_service() {
cmd=$1
name=$2
systemctl $cmd $name
@Lipton2777
Lipton2777 / .gitlab-ci.yml
Created January 24, 2022 07:38 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@Lipton2777
Lipton2777 / postgres-cheatsheet.md
Created January 11, 2022 06:50 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)