Skip to content

Instantly share code, notes, and snippets.

View sssanjaya's full-sized avatar
:octocat:
Working from home

SH sssanjaya

:octocat:
Working from home
View GitHub Profile
@kimyvgy
kimyvgy / MANUAL.md
Created May 24, 2018 01:52 — forked from s-lyn/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
@mmasztalerczuk
mmasztalerczuk / .gitlab-ci.yml
Last active January 20, 2022 20:02
Example gitlab-ci yaml
image: node:8.12.0-alpine
cache:
paths:
- node_modules/
variables:
AWS_DEFAULT_REGION: us-east-2
BUCKET_NAME: test55555
@austoonz
austoonz / PowerShellAssociation.yml
Last active January 3, 2025 04:27
CloudFormation Templates
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Creates a Systems Manager Association with inline PowerShell.
Resources:
Association:
Type: AWS::SSM::Association
Properties:
AssociationName: AssociationName
Name: AWS-RunPowerShellScript
Parameters:
@android10
android10 / oh-my-zsh-powerlevel9k-theme.md
Last active June 1, 2025 20:55
oh-my-zsh with PowerLevel9k on Arch Linux

Attention: This is DEPRECATED in favor of PowerLevel10K, I wrote an article about it:

Install oh-my-zsh with powerlevel9k theme on Arch Linux

This gist aims to facilitate the switching from bash to zsh as our defaut shell. We will be using oh-my-zsh with the powerful theme: Powerlevel9k. You will find all the links below. This process applies mainly for Arch Linux, but can be setup for any other distro (in theory :)). I'm also using Gnome Terminal and pacaur as package manager.

import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
@manueltuero
manueltuero / .gitlab-ci.yml
Created September 23, 2019 15:41
Gitlab CI/CD build and deploy template
# Global Docker image for the runner
image: node:10
stages:
- build
- deploy
cache:
paths:
- node_modules/
@johndavedecano
johndavedecano / .gitlab-ci.yml
Last active April 26, 2024 09:32
CI/CD for ReactJS Application using GITLAB
cache:
paths:
- node_modules/
- .yarn
stages:
- build
- test
- deploy
build:
image: node:10
# Source: https://gist.github.com/681a5f4455428379e00bc815450e12d8
#############################################
# eksctl #
# How to Create and Manage AWS EKS clusters #
# https://youtu.be/pNECqaxyewQ  #
#############################################
#########
# Setup #
@klingtnet
klingtnet / pipewire-on-arch-linux-gnome.md
Last active September 11, 2022 18:35
Pipewire on Arch Linux (Gnome)

Those are the only instructions I need to run to have a fully working Pipewire setup that is compatible with PulseAudio, Jack and ALSA:

$ yay -Rcns pulseaudio-jack
# note that pipewire-jack-dropin is an AUR package
$ yay -S pipewire-{jack,jack-dropin,alsa,pulse}
$ systemctl --user enable pipewire pipewire-pulse pipewire-media-session
$ systemctl reboot
# done
#################################
# K3d #
# How to run Kubernetes locally #
# https://youtu.be/mCesuGk-Fks #
#################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - Kaniko - Building Container Images In Kubernetes Without Docker: https://youtu.be/EgwVQN6GNJg