This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using DG.DOTweenEditor; | |
using DG.Tweening; | |
using Groobo; | |
using Groobo.Util; | |
using Groobo.Util.ExtInspector; | |
using NaughtyAttributes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modified from https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/maran.zsh-theme | |
# add root color changing | |
# usage: curl https://gist.githubusercontent.com/TylerTemp/054b7b55aec723b104076a1c6d816f49/raw/5dcfba1e204a3d6766f6cdeb08e7fe4bd4847ba9/smaran.zsh-theme > ~/.oh-my-zsh/themes/smaran.zsh-theme | |
# then change your theme to smaran | |
######################################## | |
# Theme with full path names and hostname | |
# Handy if you work on different servers all the time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from: https://gist.github.com/StigOlavsen/c75c78df4e704aeb5f904b6c851748ff | |
// modified: changed to URP (name & ref change), changed the shader namespace | |
// changed: using instead: https://forum.unity.com/threads/water-shader-graph-transparency-and-shadows-universal-render-pipeline-order.748142/#post-5518747 | |
Shader "Custom/AR Proxy" | |
{ | |
Properties | |
{ | |
_ShadowColor ("Shadow Color", Color) = (0.35,0.4,0.45,1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Usage: | |
smaliinjector [options] inject [<inject_smali_path>] [--exclude=<smali_path>]... | |
smaliinjector [options] inject [<smali_path>]... [--verbose | --loglevel=<loglevel>] | |
smaliinjector [options] restore [<restore_smali_path>]... | |
Options: | |
-e<smali_path>, --exclude=<smali_path> | |
exclude folders or files for `inject_smali_path`. | |
Only works with `inject [inject_smali_path]` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Usage: | |
adblogcatwatcher <package_name> [options] [--filter-message-contains <string>]... | |
adblogcatwatcher pid <package_name> | |
adblogcatwatcher start <package_name> | |
Options: | |
--adb=<path> specific adb execuable path. [default: adb] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#-*- coding: utf-8 -*- | |
set -e | |
source_file="$1" | |
# echo "$source_file" | |
format="$2" | |
echo 1 "$format" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Usage: python tt2srt.py source.xml > output.srt | |
""" | |
import sys | |
from xml.dom.minidom import parse | |
def mseconds_to_time(mseconds): | |
s, ms = divmod(mseconds, 1000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get -y update | |
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev | |
wget -c https://openresty.org/download/openresty-1.11.2.3.tar.gz | |
tar zxvf openresty-1.11.2.3.tar.gz | |
cd openresty-1.11.2.3 | |
./configure \ | |
--sbin-path=/usr/sbin/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var browserName = "Other"; | |
var ua = window.navigator.userAgent; | |
browserRegExp = { | |
Sogou : /SE\s2\.X|SogouMobileBrowser/, | |
Explorer2345 : /2345Explorer|2345chrome|Mb2345Browser/, | |
Liebao : /LBBROWSER/, | |
Wechat : /MicroMessenger/, | |
QQBrowser : /QQBrowser/, | |
Baidu : /BIDUBrowser|baidubrowser|BaiduHD/, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nemo@Jolla ~]$ devel-su | |
Password: | |
[root@Jolla nemo]# cd /etc/systemd/system | |
[root@Jolla system]# nano mount-sd4android.service | |
[root@Jolla system]# | |
[root@Jolla system]# nano /usr/local/sbin/mount-sd4android.sh | |
[root@Jolla system]# chmod ug+x /usr/local/sbin/mount-sd4android.sh | |
[root@Jolla system]# systemctl enable mount-sd4android.service | |
ln -s '/etc/systemd/system/mount-sd4android.service' '/etc/systemd/system/graphical.target.wants/mount-sd4android.service' | |
ln -s '/etc/systemd/system/mount-sd4android.service' '/etc/systemd/system/display.service.wants/mount-sd4android.service' |