Skip to content

Instantly share code, notes, and snippets.

View RayGuo-ergou's full-sized avatar
💜
Playing with ナルメア

Ray Guo RayGuo-ergou

💜
Playing with ナルメア
View GitHub Profile
@mandiwise
mandiwise / Update remote repo
Last active July 11, 2024 17:32
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@noelvo
noelvo / download-multiple-files.js
Created December 6, 2015 23:22
Download multiple files then compress to one zip file using JSZip & JSZip-utils
var zip = new JSZip();
var count = 0;
var zipFilename = "zipFilename.zip";
var urls = [
'http://image-url-1',
'http://image-url-2',
'http://image-url-3'
];
urls.forEach(function(url){

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@Winding6636
Winding6636 / dlsite_get.sh
Last active July 7, 2024 22:44
DLsite Product Download Script / OpeEnv: WSL1 WSL2 ArchLinux
#!/bin/bash
# DLsite Product Downloader
source .session > /dev/null 2>&1
function sessionchk() {
result=`curl -L -sS "https://ssl.dlsite.com/maniax/mypage" -H 'authority: www.dlsite.com' -H "cookie: AuthCookie="$AuthCookie"; __DLsite_SID="$DSID";" --compressed | grep -oP '(?<=<title>)(.+)(?=</title)'`
if [[ $result == "新規登録 - 新規登録" ]] ; then
echo :-: 認証エラー :-:
return 1
else