Skip to content

Instantly share code, notes, and snippets.

View seven1240's full-sized avatar

Seven Du seven1240

View GitHub Profile
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$CJKutf8]{$documentclass$}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry}
\usepackage{float}
\usepackage{fontspec}
\newfontfamily\zhfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STFangsong}
\newfontfamily\zhpunctfont{STFangsong}
% \setmainfont{Times New Roman}
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@seven1240
seven1240 / generate-icns.sh
Created November 10, 2021 09:31 — forked from ahmed-musallam/generate-icns.sh
A Shell script to generate .ico and .icns files (mac/windows app icons) from a single PNG
# Required deps:
# imagemagick: https://imagemagick.org/script/download.php
# name of your master icon, must be at least 512X512
PNG_MASTER="icon-large.png"
ICONSET_FOLDER="AppIcon.iconset"
sizes=(
16x16
32x32
4(14) WARNING: <core> [core/timer.c:408]: adjust_ticks(): our timer runs faster than real-time (60000 ms / 960 ticks our time .-> 59932 ms / 958 ticks real time)
1(11) INFO: <core> [core/kemi.c:104]: sr_kemi_core_info(): from: 172.22.0.1 to: 172.22.0.2 tag: rcv
REGISTER sip:seven.local SIP/2.0
Via: SIP/2.0/UDP 192.168.7.7:56988;rport;branch=z9hG4bKPjXNurz1BsW.yu6ADrxhYzsMjSRbONZC.G
Route: <sip:192.168.7.7:9060;lr>
Max-Forwards: 70
From: "1000" <sip:1000@seven.local>;tag=hiHPzjBl926GdeEPgAAG1YUiXKTOj9fi
To: "1000" <sip:1000@seven.local>
Call-ID: nTXSw8c8CwZykYx5m5NbA17tDCidyGBH
CSeq: 59529 REGISTER
====================
tag: rcv
pid: 11
process: 1
time: 1601114397.083247
date: Sat Sep 26 09:59:57 2020
proto: udp ipv4
srcip: 172.22.0.1
srcport: 60849
dstip: 172.22.0.2
EXECUTE [depth=0] sofia/internal/1007@seven7.local decode_video()
2020-07-01 06:26:51.884205 99.57% [NOTICE] mod_fsv.c:760 Channel [sofia/internal/1007@seven7.local] has been answered
2020-07-01 06:26:51.884205 99.57% [ERR] mod_fsv.c:764 WTF silence_stream://-1
2020-07-01 06:26:51.884205 99.57% [ERR] mod_fsv.c:766 WTF
2020-07-01 06:26:52.184785 99.57% [INFO] avcodec.c:1492 initializing encoder 352x288
using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[New Thread 0x7f54e1e87700 (LWP 86363)]
[New Thread 0x7f54e15af700 (LWP 86364)]
[New Thread 0x7f54e0dae700 (LWP 86365)]
[New Thread 0x7f54bbfff700 (LWP 86366)]
```
==80060==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 1104 byte(s) in 26 object(s) allocated from:
#0 0x7f185464e330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
#1 0x7f1853040d7d in wcsdup /build/glibc-vjB4T1/glibc-2.28/wcsmbs/wcsdup.c:29
Direct leak of 320 byte(s) in 4 object(s) allocated from:
#0 0x7f185464e330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index fc9a68c..49ad6f5 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -18,6 +18,67 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
--]]
+local file = io.open( "y.html", "r" )
+
file: g.erl
-module(g).
-compile(export_all).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
%%-------------------------------------------------------------------
%% Public API
@seven1240
seven1240 / bestTrace crash
Created August 6, 2018 00:12
bestTrace crash
Process: BestTrace [84000]
Path: /Applications/BestTrace.app/Contents/MacOS/BestTrace
Identifier: net.ipip.besttrace4mac
Version: 1.15 (40)
App Item ID: 1037779758
App External ID: 828078264
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: BestTrace [84000]
User ID: 501