Skip to content

Instantly share code, notes, and snippets.

View AICDEV's full-sized avatar

The Finn AICDEV

  • Essen, Germany
View GitHub Profile
@AICDEV
AICDEV / go_template_string.go
Created April 25, 2021 16:29
Golang - Template execution to string
package core
import (
"fmt"
"strings"
"text/template"
)
type TplParser interface {
GetTemplate() string
@AICDEV
AICDEV / flutter_ios.js
Last active November 2, 2023 02:36
Frida trace Flutter Functions on iOS
/**
* run the script to a running app: frida -U "appName" -l flutter_ios.js --no-pause
* start app direct with the script: frida -Uf bundleIdentifier -l flutter_ios.js --no-pause
*/
// #############################################
// HELPER SECTION START
var colors = {
"resetColor": "\x1b[0m",
"green": "\x1b[32m",
"yellow": "\x1b[33m",
@AICDEV
AICDEV / prime.py
Last active August 20, 2019 19:03
Python finding prime numbers
import math
know_prime_number = [2,3,5,7,11]
for i in range(12,1000):
notIs = False
for n in know_prime_number:
if(n <= math.sqrt(i)):
if((i % n) == 0):
notIs = False
@AICDEV
AICDEV / startMultiTmuxShell.sh
Last active June 19, 2019 18:47
If you want to start multiple session in tmux with shell scripting. Tmux, shell script, shell
# just for test and show case
mkdir test_1 test_2
echo "current tmux sessions"
tmux ls
echo "kill all tmux sessions"
tmux kill-server
declare -a directories=("test_1" "test_2")
@AICDEV
AICDEV / v8.md
Created January 23, 2019 12:57 — forked from kevincennis/v8.md
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • sudo nano ~/.bash_profile
  • Add export PATH=/path/to/depot_tools:"$PATH" (it's important that depot_tools comes first here)