Skip to content

Instantly share code, notes, and snippets.

View NorkzYT's full-sized avatar
💻
Always Coding, & Learning!

Richard Lora NorkzYT

💻
Always Coding, & Learning!
  • 04:37 (UTC -04:00)
View GitHub Profile
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana (*)
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@matthewzring
matthewzring / markdown-text-101.md
Last active May 24, 2024 04:57
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@MauricioMoraes
MauricioMoraes / access_postgresql_with_docker.md
Last active May 2, 2024 10:21
Allow Docker Container Access to Host's Postgres Database on linux (ubuntu)

You have to do 2 things in order to allow your container to access your host's postgresql database

  1. Make your postgresql listen to an external ip address
  2. Let this client ip (your docker container) access your postgresql database with a given user

Obs: By "Host" here I mean "the server where docker is running on".

Make your postgresql listen to an external ip address

Find your postgresql.conf (in case you don't know where it is)

$ sudo find / -type f -name postgresql.conf

@nhalstead
nhalstead / .rc_extra
Last active May 25, 2023 00:41
Handy Bash Scripts for Development using docker containers in a namespace fashion built from a docker compose script using DockerStation and Kubernetes cluster.
# Bash Functions to load into the shell environment
alias chmox="chmod +x"
alias claer="clear"
alias exiut="exit"
alias exuit="exit"
@mnghn07
mnghn07 / gitCommitEmoji.md
Created August 10, 2020 10:32
Git Commit Message Emoji
@tobychui
tobychui / install-go.sh
Created August 5, 2021 05:16
Go installer script for Linux ARM SBC
#/bin/bash
echo "Input the go arch to install (arm/arm64/amd64)"
read -p "Architecture: " arch
if [ "$arch" = "arm" ]; then
echo "Installing arm version of go"
wget https://golang.org/dl/go1.15.3.linux-armv6l.tar.gz
fi
if [ "$arch" = "arm64" ]; then
echo "Installing arm64 version of go"
@amit08255
amit08255 / nexus_prisma_cheatsheet.md
Last active February 3, 2024 01:14
Nexus + Prisma CheatSheet

Nexus + Prisma CheatSheet

Creating model in Prisma

First create generator and datasource entry in your .prisma file like below:

generator client {
  provider = "prisma-client-js"
}
@grifx
grifx / 0000_hello_world.md
Last active March 30, 2024 11:21
Create your own roadmaps from roadmap.sh with checkboxes on GIST

Hello,

My SO is learning coding. I wanted a convenient way for her to consume the content from roadmap.sh.

I hope it can help someone else.

If you want your own roadmap:

  1. Fork or Copy-paste the md files you are interested in your own gist.