Skip to content

Instantly share code, notes, and snippets.

View Hackl0us's full-sized avatar

Jason Zhang Hackl0us

View GitHub Profile
@Hackl0us
Hackl0us / ica_watch.py
Created September 22, 2025 14:55 — forked from yujqiao/ica_watch.py
ICA Application Status Watcher
'''
This is a helper script to watch application status and send notification on any state change.
Use at your own risk.
Set env var APPLICATION_NO to your case number e.g. ISC25000000000
Set env var CHECK_INTERVAL to refresh interval in seconds
Set env var INITIAL_COOKIES to the cookie after log in to ICA website, in http header format
Implement your own notification logic in send_notification
'''
@Hackl0us
Hackl0us / dependabot-patch.yaml
Created June 10, 2022 08:02
Depdendabot auto-patch workflow for GitHub Actions
name: Dependabot auto-patch
on:
pull_request_target:
permissions:
pull-requests: write
contents: write
jobs:
dependabot-patch:
@Hackl0us
Hackl0us / rss2.xml
Created August 20, 2021 06:57
ripsaw test
<xml version="1.0">
<rss version="2.0">
<channel>
<title>Hackl0us IPSW Repo</title>
<description>ipsw repo for test</description>
<link>https://hackl0us.com</link>
<item>
<title>iPhone 12 Pro</title>
<description>iOS 15 b6</description>
@Hackl0us
Hackl0us / git-author-rewrite.sh
Created May 25, 2021 02:55
Rewrite Git author/email after commit
#!/bin/bash
# Copy from https://github.com/frz-dev/utilities/blob/master/git/git-author-rewrite.sh
# git-author-rewrite.sh
# This script replace author/committer name/email in a git repo commit history
#SOURCES:
#https://gist.github.com/octocat/0831f3fbd83ac4d46451
#https://gist.github.com/frz-dev/adf8c2c7275da1369e0cc340feda0ba0
#https://gist.github.com/octocat/0831f3fbd83ac4d46451#gistcomment-2178506
@Hackl0us
Hackl0us / AWS_IAM_Role_Policy.json
Created January 27, 2021 12:12
Use AWS Lambda to control EC2 launch status
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "arn:aws:logs:ap-east-1:812381238123:*"
},
{
"Effect": "Allow",
@Hackl0us
Hackl0us / GlobalProtectKiller.sh
Created January 29, 2020 06:07
Global Protect Killer
# Copyright 2020 by Hackl0us
# Version 1.0
#!/bin/zsh
# Unload Global Protect LaunchAgents
launchctl unload -w /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
launchctl unload -w /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
# Kill Global Protect related Processes
@Hackl0us
Hackl0us / switch_proxy.sh
Last active February 23, 2020 09:32
Terminal Proxy Switcher
#!/usr/bin/env zsh
shell_config="${HOME}/.zshrc"
proxyOn(){
echo "export https_proxy=http://127.0.0.1:8888" >> ${shell_config}
echo "export http_proxy=http://127.0.0.1:8888" >> ${shell_config}
echo "export all_proxy=socks5://127.0.0.1:8889" >> ${shell_config}
source ${shell_config}