Skip to content

Instantly share code, notes, and snippets.

View showsky's full-sized avatar
👋
Hello World~

Ting Cheng showsky

👋
Hello World~
View GitHub Profile
@showsky
showsky / install.sh
Created May 9, 2024 17:21
install.sh
#!/bin/bash
sudo apt update
sudo apt install -y zsh screen git tig
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i 's/git/git zsh-autosuggestions/g' ~/.zshrc
/* reference: https://httptoolkit.tech/blog/frida-certificate-pinning/
* This script combines, fixes & extends a long list of other scripts, most notably including:
*
* - https://codeshare.frida.re/@akabe1/frida-multiple-unpinning/
* - https://codeshare.frida.re/@avltree9798/universal-android-ssl-pinning-bypass/
* - https://pastebin.com/TVJD63uM
*/
setTimeout(function () {
Java.perform(function () {
@showsky
showsky / install.md
Last active December 1, 2022 06:09
Ubuntu Install ToDO List

Ubuntu Install Memo

Install Software

api update && apt install \
    git tig screen curl wget zsh fail2ban \
    nginx mysql-server \
 php-fpm php-cli \
@showsky
showsky / ZoomImageView.java
Created October 19, 2022 11:09
ZoomImageView
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
@showsky
showsky / README.md
Created August 9, 2022 04:15
How to mac m1 install openswoole..
  1. 'pcre2.h' file not found

    Screen Shot 2022-08-09 at 11 45 34 AM

    ln -s /opt/homebrew/Cellar/pcre2/10.40/include/pcre2.h /opt/homebrew/Cellar/php/8.1.8/include/php/ext/pcre/pcre2.h
    

    Screen Shot 2022-08-09 at 11 46 37 AM

package tw.com.feebee.staging;
import com.google.api.services.bigquery.model.TableRow;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.apache.beam.runners.direct.DirectOptions;
import org.apache.beam.sdk.Pipeline;
@showsky
showsky / Brewfile
Created July 22, 2022 05:35
Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "mdogan/zulu"
brew "webp"
brew "openssl@1.1"
brew "pcre"
brew "pkg-config"
@showsky
showsky / merge_sort.php
Created December 11, 2021 16:00
(PHP) Merge Sort
<?php
function mergeSort(array &$array, int $front, int $end) {
if ($front < $end) {
$mid = (int) (($front + $end) / 2);
mergeSort($array, $front, $mid);
mergeSort($array, $mid + 1, $end);
merge($array, $front, $mid, $end);
}
}
@showsky
showsky / BaseEnum.php
Created March 22, 2021 04:45
PHP Enum Demo
<?php
abstract class BaseEnum
{
public static function toArray()
{
$reflection = new \ReflectionClass(static::class);
$constant = $reflection->getConstants();
@showsky
showsky / ssv_verify.php
Created September 17, 2020 04:08
PHP Ver. verify ECDSA
<?php
/**
* Validating Server-Side Verification (SSV) Callbacks
* https://developers.google.com/admob/android/rewarded-video-ssv
*
* @author showsky <showsky@gmail.com>
*/
function fetch_verifier_keys() {