Skip to content

Instantly share code, notes, and snippets.

#配置参数生成时间:2023-10-26
name = "一名法学生的配置文档"
email = "a79865863@gmail.com"
website = "http://sharex.win:878"
description = "一名法学生的代理配置"
# 用户配置(Profile)
[PROFILE.sharex]
proxies:
- name: TT1
type: socks5
server: 8.219.182.134
port: 31006
username: dpn5c7
password: j82lmh2f
- name: TT-IPHONE-LUCKIN
type: socks5
server: 8.219.182.134
This file has been truncated, but you can view the full file.
port: 7890
socks-port: 7891
redir-port: 7892
mixed-port: 7893
allow-lan: false
mode: Rule
log-level: info
external-controller: ':9990'
clash-for-android:
public void synchronousMediaData(AccountDataEntity accountDataEntity) {
LogUtils.info(log, "[start synchronous youtube data]: account={}", accountDataEntity.getChannel());
if (accountDataEntity.getInfluencerId() == 0) {
throw new RuntimeException("influencer id is 0");
}
InfluencerDataEntity influencerDataEntity = influencerRepository.selectById(accountDataEntity.getInfluencerId());
if (influencerDataEntity == null) {
throw new RuntimeException("influencer is not exist");
}
from playwright.sync_api import sync_playwright
class NoxInfluencerCrawler(object):
def crawl_details(self, detail_urls):
with sync_playwright() as p:
brower = p.chromium.launch(headless=False)
context = brower.new_context()
page = context.new_page()
page.set_default_navigation_timeout(60*1000)
@candyan
candyan / ioslocaleidentifiers.csv
Created December 17, 2018 06:33 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@candyan
candyan / highsierra_bootable.sh
Created August 8, 2018 10:00 — forked from agentsim/highsierra_bootable.sh
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@candyan
candyan / create-iso.sh
Created August 8, 2018 09:25 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
#/bin/sh
yum install git -y
yum install vim -y
yum install wget -y
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
git clone https://github.com/candyan/shadowsocks-py-mu.git -b berrylab
pip install supervisor
mkdir -p /var/log/supervisor/
@candyan
candyan / latest-ffmpeg-centos6.sh
Last active September 1, 2017 12:28 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -L -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0