- Message pattern:
^\[(.*)\] (.+?)\.([A-Z]+): (.*)
- Message start pattern:
^\[
- Time format:
yyyy-MM-dd HH:mm:ss
- Time capture group:
1
- Severity capture group:
3
- Category capture group:
2
This file contains 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/sh | |
set -ex | |
V2RAY_BINARY_PATH=/usr/local/bin | |
V2RAY_LOCATION_ASSET_PATH=/usr/local/share/v2ray | |
V2RAY_CONFIG_PATH=/usr/local/etc/v2ray | |
apt update | |
apt install -y zip |
This file contains 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
#Unzip the IPA | |
unzip Application.ipa | |
#Remove old CodeSignature | |
rm -R "Payload/Application.app/_CodeSignature" | |
#Replace embedded mobile provisioning profile | |
cp "path-to-provisioning-profile/MyEnterprise.mobileprovision" "Payload/Application.app/embedded.mobileprovision" | |
#If you are resigning to submit to the AppStore you need to extract the entitlements to use later |
This file contains 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
if infocmp xterm-256color >/dev/null 2>&1; then | |
export TERM=xterm-256color | |
fi | |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
MAGENTA=$(tput setaf 9) | |
ORANGE=$(tput setaf 172) | |
GREEN=$(tput setaf 190) |
This file contains 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 | |
mkdir /usr/local/{etc,share}/v2ray | |
cp ./*.json /usr/local/etc/v2ray | |
cp ./v2{ctl,ray} /usr/local/bin | |
cp ./*.dat /usr/local/share/v2ray |
This file contains 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
package com.honey; | |
import java.util.concurrent.*; | |
/** | |
* Hello world! | |
*/ | |
public class App { | |
public static void main(String[] args) { |
This file contains 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
import socket | |
import ustruct | |
import time | |
from machine import RTC | |
# datetime.date(2000, 1, 1) - datetime.date(1900, 1, 1) | |
NTP_DELTA = 3155673600 | |
NTP_SERVER = '0.cn.pool.ntp.org' | |
def get_ntp_time(): |
This file contains 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
import socket | |
import struct | |
import time | |
# datetime.date(1970, 1, 1) - datetime.date(1900, 1, 1) | |
NTP_DELTA = 2208988800 | |
NTP_SERVER = '0.cn.pool.ntp.org' | |
def get_ntp_time(): | |
data = bytearray(48) |
This file contains 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
https://press.one/p/address/v?s=4c8d6cec6dc360ad73cc18d9f893cf2a1816f3ab527be0f98fe6f8338087075a14a252d2f99089a3107df842673123bbd99aaca8a30db94357a2105aeed4df7d0&h=bf59b4c015605a9e8a08952d52c0fca3e78e67463d74e13887c3eac6ebc3ea4a&a=96303b762d3860e21afc7cefd7e1ff79176f5cb2&f=P1&v=2 |
This file contains 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
set t_Co=256 | |
set laststatus=2 | |
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 wmw=0 smarttab smartindent nu | |
set listchars=tab:▸\ ,eol:¬ list | |
if has('gui_running') | |
colorscheme molokai | |
set background=dark | |
set guifont=Inconsolata-g\ for\ Powerline:h12 | |
set guioptions-=r |
NewerOlder