Skip to content

Instantly share code, notes, and snippets.

View Ppang0405's full-sized avatar
:shipit:
Tet holiday

Jeremy Ppang0405

:shipit:
Tet holiday
  • Hanoi
View GitHub Profile
@Ppang0405
Ppang0405 / aws.md
Created October 22, 2021 09:44 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@Ppang0405
Ppang0405 / gist:7608277e85b253071fb78983293f52e6
Created October 21, 2021 15:38 — forked from anthonyray/gist:398fde676a7704c03d6624155ba0011e
Set up OhMyZsh on Amazon EC2 instance running Ubuntu Server 14.04
  1. Connect to your EC2 instance
  2. Install zsh : sudo apt-get update && sudo apt-get install zsh
  3. Edit your passwd configuration file to tell which shell to use for user ubuntu : sudo vim /etc/passwd
  4. Look for ubuntu user, and replace bin/bash by bin/zsh
  5. Install OhMyZsh : sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  6. Disconnect from your instance and reconnect it.
@Ppang0405
Ppang0405 / count_messages.py
Created January 4, 2021 16:24 — forked from yi-jiayu/count_messages.py
Using Telethon and the Telegram API to count the number of messages in each of your recent conversations
from telethon import TelegramClient
from telethon.errors.rpc_errors_401 import SessionPasswordNeededError
# (1) Use your own values here
api_id = 17349
api_hash = '344583e45741c457fe1862106095a5eb'
phone = 'YOUR_NUMBER_HERE'
username = 'username'
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//

Node.js Essential Packages

Adrian's collection of super useful NPM packages.

Utilities

Async

  • async - Higher-order functions and common patterns for asynchronous code.

Google Clone

A fully functional replica of Google's main page, you can use it for searches and everything else. Styled with CSS to look as close as possible to current google main page, a bit of jquery magic to make it fully functional.

A Pen by Francesco Agnoletto on CodePen.

License.

ScreenShot