In Unity goto "Edit->Preferences->Player" then find and set "Scripting Runtime Version*" to ".NET 4.x Equivalent"
Add dependency
"com.unity.incrementalcompiler": "0.0.42-preview.31"
using System; | |
using System.Runtime.InteropServices; | |
// https://stackoverflow.com/questions/10394994/where-can-i-find-custom-opengl-datatypes-in-sharpgl | |
using GLbitfield = System.UInt32; | |
using GLboolean = System.Boolean; | |
using GLbyte = System.SByte; | |
using GLclampf = System.Single; | |
using GLdouble = System.Double; | |
using GLenum = System.UInt32; |
watch -t -n 0.0001 xdotool getmouselocation |
xinput --enable 12 | |
xinput --disable 12 |
# Linux | |
sudo snap install retroarch | |
cd /tmp | |
# download core | |
wget http://buildbot.libretro.com/assets/cores/Cannonball/CannonBall.zip | |
unzip -o CannonBall.zip | |
cd CannonBall |
Option A: | |
sudo apt-get -o Acquire::ForceIPv4=true update | |
Option B: | |
1. Open Terminal | |
2. Enter sudo -H gedit /etc/sysctl.conf and open the configuration file and add the following lines at the end |
import requests | |
import base64 | |
from tqdm import tqdm | |
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
resp = requests.get(master_json_url) | |
content = resp.json() |
# Dep | |
# Tested on Ubuntu 20.04 | |
sudo apt install libsdl-ttf2.0-0 | |
# Roms | |
cd $HOME | |
mkdir -p mame/roms | |
cd ~/mame/roms | |
wget https://ia803104.us.archive.org/0/items/aristmk6/qsound_hle.zip |
#!/bin/bash | |
dep(){ | |
sudo apt install mkvtoolnix iconv | |
} | |
convertToMkv(){ | |
INPUT_FILE=$1 | |
SRT_FILE=$2 | |
OUTPUT_FILE=$3 |
pip install gdown | |
FILE_ID=1OrIMj2VdLM1wBonrV2jKVqVQTPSQMjnf | |
gdown "https://drive.google.com/uc?id=$FILE_ID" |