Skip to content

Instantly share code, notes, and snippets.

@xuan
xuan / README.md
Created May 28, 2023 19:49
Compiling Ryujinx
mkdir git
cd git
git clone https://github.com/Ryujinx/Ryujinx
cd Ryujinx
dotnet build -c Release -o build
./distribution/macos/create_macos_build.sh ./ ./distribution/macos/temp ./distribution/macos/output ./distribution/macos/entitlements.xml 1.1.1 0 Release ""

Move the git/Ryujinx/distribution/macos/output/Ryujinx.app into your Applicationd directory and run it.

@xuan
xuan / readme.md
Last active December 20, 2022 19:59
Install dotnet on a Macbook

Installation

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install dotnet-sdk

brew install --cask dotnet-sdk
@xuan
xuan / scalping.md
Last active July 21, 2021 18:11
Easy 1 Minute Scalping Trading Strategy

Rule:

  1. Only Buy (Long) if 20 period EMA is above the 50 EMA and the 50 EMA is also above the 100 EMA.

ENTREES

All entrees comes with a choice of 1 side

Chicken Sandwich Chicken breast on buttered Texas toast topped off with Kickin sauce, slaw, and pickles. 9.50

Chicken Tenders 3 chicken tenders with choice of 2 sauces.

@xuan
xuan / install.md
Last active January 28, 2021 14:22
Install Oh My Zsh

Install ZSH in Ubuntu

Install Fonts

Install powerline fonts

sudo apt -y install powerline fonts-powerline

Install Nerd-Fonts (Optional)

@xuan
xuan / README.MD
Created October 11, 2019 14:54
Moving files with certain extensions into the trash for MacOS

install trash using brew

brew install trash

cd into the directory and move anything with that file extension into the trash

cd ~/Downloads/stuff; find -E . -regex '.*\.(jpg|png|nfo|exe|txt)' -exec trash {} +
@xuan
xuan / Kubernetes.md
Last active April 26, 2019 20:13
Install Docker + Kubernetes + Ubuntu

Your Kubernetes control-plane has initialized successfully!

To start using your cluster, you need to run the following as a regular user:

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

You should now deploy a pod network to the cluster.

@xuan
xuan / log4j2.xml
Created October 2, 2018 15:28
My really awesome log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} %t %highlight{%level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=green, DEBUG=blue} (%F:%L) - %m%n"/>
</Console>
<RollingFile name="File" fileName="logs/my-log-name.log"
filePattern="logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>%d{yyyy-MMM-dd HH:mm:ss a} [%t] %-5level %c{1}:%L - %m%n</Pattern>
@xuan
xuan / ubuntu-intellij-install.md
Created April 20, 2018 21:51
Install intellij

Open a terminal and run:

sudo snap install intellij-idea-community --classic --edge
@xuan
xuan / README.md
Last active April 18, 2018 16:55
Find class in subdirectory of jars
find . -name "*.jar" | xargs grep Hello.class