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 / 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 / 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 / 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 / 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 / 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 / FCMAuthenticationKeyTestPush.sh
Last active January 20, 2021 04:10
[APNs Authentication Key] FCM Test PUSH Script for debugging
#!/bin/bash
# https://firebase.googleblog.com/2017/01/debugging-firebase-cloud-messaging-on.html
# https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
# https://firebase.google.com/docs/cloud-messaging/http-server-ref
# https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html#//apple_ref/doc/uid/TP40008194-CH11-SW1
clear
echo
echo "------ Debug start ------"
@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