Skip to content

Instantly share code, notes, and snippets.

View nfhipona's full-sized avatar
:shipit:
Slacking remotely

Neil Francis Ramirez Hipona nfhipona

:shipit:
Slacking remotely
View GitHub Profile
@nfhipona
nfhipona / Phone & Card Number Validator.md
Last active January 19, 2024 03:55
RegEx Pattern: Phone Number & Card Number Validator

RegEx Pattern: Phone Number & Card Number Validator

Useful for mobile and card number validation with specific format


Phone Number

(((\+91)+(\d{5}|\s){4})|((\d{5}|\s){3})) - will validate phone number with +91 12345 67890 or 12345 67890

@nfhipona
nfhipona / Appx-Uninstaller.ps1
Created August 7, 2023 03:50 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@nfhipona
nfhipona / AEMRunScript.sh
Last active May 8, 2023 05:59
AEM Run Script
#!/bin/sh
# https://gist.github.com/nferocious76/c2809304e99478e2d5d4d13b7b44e9b7
PORT=4502
NAME="author"
FILE="aem-author-p4502.jar"
# find and kill active instance on port $PORT
INSTANCE=$(netstat -vanp tcp | grep $PORT)
@nfhipona
nfhipona / Mac Terminal Alias.md
Last active September 12, 2022 15:15
Creating Alias in Mac Terminal

To create an alias, use alias ALIAS_NAME="ALIAS_VALUE":

alias ll="ls -al"

To remove the alias, use the unalias command:

unalias ll
@nfhipona
nfhipona / RFC1918.md
Last active September 12, 2022 15:15
RFC 1918 - Network(s)

RFC 1918 - Network(s)

  • 192.168.0.0/16
  • 172.16.0.0/12
  • 10.0.0.0/8

Calculator: click here

@nfhipona
nfhipona / TCP Upload Speed - Congested network.md
Last active May 25, 2022 14:04
TCP Upload Speed - Congested network

sysctl net | grep net.inet.tcp | egrep -i "cubic|reno"

net.inet.tcp.cubic_sockets: 36 net.inet.tcp.newreno_sockets: 0 net.inet.tcp.use_newreno: 0 net.inet.tcp.cubic_fast_convergence: 0 net.inet.tcp.cubic_minor_fixes: 1 net.inet.tcp.cubic_rfc_compliant: 1 net.inet.tcp.cubic_tcp_friendliness: 0 net.inet.tcp.cubic_use_minrtt: 0

@nfhipona
nfhipona / pldt-home-fibr-an5506-04-fa-rp2627-advanced-settings.md
Created October 29, 2019 05:20 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings


[Notice]

Project moved to https://gitlab.com/kbeflo/fiberhomesuperadmin due to excessive amount of unicorns.
Gist here will not be updated anymore
Discussion here on Gist is still allowed but I strongly recommend going over to Gitlab or Discord chat

@nfhipona
nfhipona / git - workflow rules.md
Last active July 23, 2021 12:27
git workflow and rules

MANDATORY GIT WORKFLOW RULES:

master

  • core production branch
  • do not push directly.
  • all hotfix/? code will always be forked from master branch
  • merges should be from PR (supervised). PR should be either hotfix/?, patch/? or from release/? for final live build
  • updates (hotfix/patch) should be merged back to develop - means this branch will not be in sync with develop, but its changes (hotfix) will always be synched back to develop
@nfhipona
nfhipona / APNsAuthenticationKeyTestPush.sh
Last active January 20, 2021 06:17
[APNs Authentication Key] APNS Test PUSH Script for debugging
#!/bin/bash
# https://firebase.googleblog.com/2017/01/debugging-firebase-cloud-messaging-on.html
# https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW1
# https://developer.apple.com/videos/play/wwdc2016/724/
clear
echo
echo "------ Debug start ------"
echo