Skip to content

Instantly share code, notes, and snippets.

View danielkv's full-sized avatar
🎯
Focusing

Daniel K. Guolo danielkv

🎯
Focusing
View GitHub Profile
@danielkv
danielkv / export.js
Last active November 30, 2022 17:24
const path = require('path')
const fs = require('fs')
const { format } = require('prettier')
const folder = path.resolve(__dirname)
const outputFile = path.resolve(__dirname, 'index.ts')
function generateExport(name, findings) {
let exportString = 'export {'
@danielkv
danielkv / unlock_expo_ports.ps1
Created November 29, 2022 22:42 — forked from kendallroth/forward_wsl2_ports.ps1
Unlock Expo ports for WSL2 development
# Find WSL2 IP address
$wsl_ip = $(wsl hostname -I).Trim();
$windows_ip = '0.0.0.0';
if ( -Not $wsl_ip ) {
Write-Output "IP address for WSL 2 cannot be found";
exit;
}
Write-Output $wsl_ip
@danielkv
danielkv / setup.sh
Created April 15, 2021 16:15
Setup Android SDK in WSL 2
cd ~
sudo apt-get update
sudo apt-get install unzip zip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.zshrc