Skip to content

Instantly share code, notes, and snippets.

View anak10thn's full-sized avatar
🌴
Maaf gak di rumah

Ibnu Yahya (Eka) anak10thn

🌴
Maaf gak di rumah
View GitHub Profile
@anak10thn
anak10thn / LPX-Trial-Reset.sh
Created March 11, 2025 03:54 — forked from maxwellmlin/LPX-Trial-Reset.sh
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash
Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p
@anak10thn
anak10thn / gist:77f8909a31c8d24e921f53177d718889
Last active July 13, 2024 08:04 — forked from swedishmike/gist:902fb27d627313c31a95e31c44e302ac
Adding and removing virtual environments to Jupyter notebook
https://github.com/anaconda/nb_conda_kernels
## Create the virtual environment
conda create -n 'environment_name' python=3.9
## Activate the virtual environment
conda activate 'environment_name'
## Make sure that ipykernel is installed
pip install --user ipykernel
@anak10thn
anak10thn / superset-install.sh
Created June 30, 2024 17:02 — forked from ryanbekhen/superset-install.sh
Instant Installation Apache Superset
#!/bin/bash
SUPERSET_DIR=~/superset
sudo apt-get update -y # update package
sudo apt-get install build-essential libssl-dev libffi-dev python-pip libsasl2-dev libldap2-dev default-libmysqlclient-dev -y # install package
sudo apt-get install python3-pip python3.10-venv -y # install package
[ ! -d $SUPERSET_DIR ] && mkdir $SUPERSET_DIR
@anak10thn
anak10thn / cuda_11.8_installation_on_Ubuntu_22.04
Created May 18, 2024 06:01 — forked from MihailCosmin/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@anak10thn
anak10thn / genyproxy.md
Created February 20, 2024 05:20 — forked from mightymercado/genyproxy.md
Using an HTTP/S proxy with username/password in Genymotion

Install mitmproxy

brew install mitmproxy

Start mitmproxy with an upstream proxy

mitmproxy --mode upstream:https://host:port --upstream-auth=user:password

Create any genymotion android device in bridged network mode

Use 10.0.3.2:8080 as proxy in device

@anak10thn
anak10thn / rag-reranking-gpt-colbert.ipynb
Created January 22, 2024 05:56 — forked from virattt/rag-reranking-gpt-colbert.ipynb
rag-reranking-gpt-colBERT.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anak10thn
anak10thn / android-backup-apk-and-datas.md
Created November 2, 2023 11:16 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@anak10thn
anak10thn / README.md
Created September 18, 2023 15:40 — forked from billywhizz/README.md
readFileSync benchmark

File benchmarks in JavaScript

Requirement: We assume that have macOS or Linux. Windows is not supported.

Run the bash script script.sh (e.g., type bash script.sh). It will install nvm and bun in your user account, if needed.

The benchmark simply reads the current README.md file, as quickly as possible.

@anak10thn
anak10thn / README-setup-tunnel-as-systemd-service.md
Created September 2, 2023 22:55 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target