Skip to content

Instantly share code, notes, and snippets.

View Lesmiscore's full-sized avatar
💭
🤔

Lesmiscore Lesmiscore

💭
🤔
  • なぞのばしょ
  • Mystery Zone, Pokémon
View GitHub Profile
{
"type": "Program",
"start": 0,
"end": 25278,
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 25243,
"expression": {
import numpy as np
from scipy.interpolate import interp1d
import csv
import sys
filename = sys.argv[1]
samples = int(sys.argv[2])
time, values = [], [[],[]]
with open(filename, 'r', encoding='utf-8') as csvfile:
#!/bin/bash
# Copyright by nao20010128nao
USER="$1"
TOKEN="See https://apiv2-doc.twitcasting.tv/#get-access-token for obtaining token"
tcdl(){
xargs youtube-dl -i --external-downloader=ffmpeg --output '%(title)s-%(uploader_id)s-%(id)s.%(ext)s' "$@"
}
current_live(){
@Lesmiscore
Lesmiscore / qiita.sh
Created March 26, 2020 03:02
Qiitaダウンロード
curl -Ss -L qiita.com/api/v2/users/onokatio/items?per_page=100 | jq '.[] | [.title,.url]' | xargs -L4 -d '\n' echo|while read -r line;do curl -o "$(echo "$line" | jq -r .[0])".md "$(echo "$line" | jq -r .[1])".md;done
wget -qO- qiita.com/api/v2/users/onokatio/items?per_page=100 | jq '.[] | [.title,.url]' | xargs -L4 -d '\n' echo|while read -r line;do wget -O "$(echo "$line" | jq -r .[0])".md "$(echo "$line" | jq -r .[1])".md;done
@Lesmiscore
Lesmiscore / 3digits.diff
Created November 28, 2019 08:24
Make progress 3 digits under the point of transmission-cli
diff --git a/build.sh b/build.sh
new file mode 100755
index 000000000..d014e12b6
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -xe
+mkdir build || true
+cd build
This file has been truncated, but you can view the full file.
<<< youtube-dl for UNIX ( use jis7 ish ) [ 30798 lines ] UNIX Ver2.01a5 >>>
!!3Co6gR!2"DRot9a1Kz(wBIjL$E!$"aDu!JN>!$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rj5'
!!3Co6gR!2"DRot9a1Kz(wBIjL$E!$"aDu!JN>!$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rj5'
!!3Co6gR!2"DRot9a1Kz(wBIjL$E!$"aDu!JN>!$!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rj5'
"/5*^YZ1DDWldIW>lD-HkV,8rC6>"l2wP1)%!!!!!$Pe'mMI8X(};X!%33+VP"!-"8MU_>Cgi9$7@Q
$_'<NFoCvXAbb@(3jsJK_H@w!$gX^FsD77IK^cr+!$9Sy}!"P"KK!!!!Mi68IX<df*2L24fLu}BA@:
%3R<@h75=R[Zd;AObhWu1Nw|WaH>DqK3s0iQ'\whzg}?UW&P!(<A8{_*_]EWyL>sN(xA:_xwf4KY1-
&;MAc|}N2'QHM]fUV,qCf@S!/k{qGM>+lH93tOYU;E(&pe^^@p?Y[_WZ^p:PIO\kHIS'90GoHo,,AC
'387CnA"^\j{w*iemv1~_~t>IGy?vWLAfWq2y>zr;7AOLEtYaRA!&0XCKy]/X?HI$DrVCHLH/0Ou$?
(7IB1\e{]mERnoF5(RE~\=Or[24l_e1aF\x5|qXiYN7bOuc(BLS'TM>(/2fl<2u!rIJW^YqOt^UWF{
This file has been truncated, but you can view the full file.
05:23:55 execve("/usr/bin/mplayer", ["mplayer", "-vo", "null", "-quiet", "\343\200\214\357\274\255\357\274\266\343\200\215\343\200\200\345\215\203\346\234\254\346\241\234\343\200\200White"...], 0x7ffdc76e8808 /* 14 vars */) = 0
05:23:55 brk(NULL) = 0x5600c9e54000
05:23:55 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
05:23:55 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
05:23:55 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
05:23:55 fstat(3, {st_mode=S_IFREG|0644, st_size=60789, ...}) = 0
05:23:55 mmap(NULL, 60789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f02f77df000
05:23:55 close(3) = 0
05:23:55 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
05:23:55 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
/*!
* modernizr v3.7.1
* Build https://modernizr.com/download?-canvas-svg-dontmin
*
* Copyright (c)
* Faruk Ates
* Paul Irish
* Alex Sexton
* Ryan Seddon
* Patrick Kettner
youtube NI76MITWl6o
youtube 3TseHusPm5U
youtube wZoNwLEgdXQ
youtube kdELKVMS_Bg
youtube xDdU1VAyTQs
youtube -6iGSeYkBkA
youtube GKyjew2vYAQ
youtube 3ybzM_uEsMA
youtube w3hr0A-F10w
youtube baAfbAO_7xQ
@Lesmiscore
Lesmiscore / modifiable-client-name.diff
Created January 9, 2019 04:50
Modifiable Client Name
diff --git a/src/init.cpp b/src/init.cpp
index 7d526ac..129bbe5 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1388,7 +1388,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
return InitError(strprintf(_("User Agent comment (%s) contains unsafe characters."), cmt));
uacomments.push_back(cmt);
}
- strSubVersion = FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, uacomments);
+ strSubVersion = FormatSubVersion(gArgs.GetArg("-uaclient", CLIENT_NAME), CLIENT_VERSION, uacomments);