Skip to content

Instantly share code, notes, and snippets.

View dev-pengi's full-sized avatar
💻
Hey there

Seif Eddine Haboul dev-pengi

💻
Hey there
View GitHub Profile
var mediaJSON = {
categories: [
{
name: "Movies",
videos: [
{
description:
"Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
sources: [
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
@dev-pengi
dev-pengi / token-login.md
Created May 13, 2023 18:30
Simple console script to log in to discord account using your token.

login to your discord account using your token

step:

  • go to https://discord.com/login and open the browser dev tool
  • go to the console window and paste the script and wait 3 seconds

and it's done

@dev-pengi
dev-pengi / regexs.md
Last active December 27, 2022 07:49

common and useful regexes

links regex

/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,200}\.[a-zA-Z0-9()]{2,7}\b([-a-zA-Z0-9()!@:%_\+.~#?&\/\/=]*)/y

emails regex

/^[\w-\.]+@([\w-]+\.)+[\w-]{2,9}$/y
@dev-pengi
dev-pengi / nodejs.md
Last active June 10, 2023 13:03
How to Deploy a Node.js App on a Production Server

Node.js Deployment

1. Upload project files and install the depancies

git init
git pull <project link>
npm install