$ curl \
--header "Content-Type: application/json" \
--data '{"access_grant": "1uW6DdRk8aQ1CAK8H7K34BePSgSNFCy9vsZZgNmGrZBoqLrZS5Lu1pxaoDgyCF4NCY6KdiGyCyfAoNbxYoXMh9wWP6HgxkuQ1PCvC25DvoXjwaAkUqRXtFPhCb4hr5cTrLYLJnqcfKVEmXX6UeXXoBsQoktzXjYLjadzHX58XUWEpcZioqMqFGCUqnyzgRTTRZB2anQpADv1FCpuvombxZxzxTdd8HWEcRXmUAwVsNxavBHeLL7ymZMXihMb4FVrYvwUegmWXEg47f1x", "public": true}' \
-v https://auth.eu1.storjshare.io/v1/access
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" class="uk-height-1-1"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>flasktest</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" /> | |
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
</head> |
This file contains hidden or 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 | |
# ===> Set these variables first | |
branch="$GIT_BRANCH" | |
# Example: "Jaskaranbir/MyRepo" | |
repo_slug="$TRAVIS_REPO_SLUG" | |
token="$GITHUB_TOKEN" | |
version="$TRAVIS_TAG" | |
# An automatic changelog generator |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
"""split audio downloaded from youtube with the text format timeline such as: | |
00:00 Trailer 1 Theme | |
02:41 Trailer 2 Theme | |
04:49 Trailer Theme 3 | |
05:13 PS4 Home Theme | |
06:41 Dynamic Screen Theme | |
09:13 Intro Theme |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
URL_HOME = 'https://www.ebookjapan.jp' | |
def search(keyword): |
This file contains hidden or 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
@echo on & @setlocal enableextensions | |
@echo ========================= | |
@echo Turn off the time service | |
net stop w32time | |
@echo ====================================================================== | |
@echo Set the SNTP (Simple Network Time Protocol) source for the time server | |
w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org" | |
@echo ============================================= | |
@echo ... and then turn on the time service back on | |
net start w32time |
This file contains hidden or 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
#-*- encoding: utf8 -*- | |
import sys | |
import uuid | |
import requests | |
import logging | |
import time | |
from ebooklib import epub | |
from bs4 import BeautifulSoup as bs |
This file contains hidden or 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
#!/usr/bin/env python | |
# encoding:utf-8 | |
import re | |
import os | |
import json | |
from bs4 import BeautifulSoup as bs | |
chinese_number = u"○一二三四五六七八九" | |
annotation_cats = { | |
u'注': 'zhu', |
This file contains hidden or 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
#!/usr/bin/python | |
import os | |
import sys | |
import zipfile | |
import getopt | |
from biplist import readPlist | |
book_path = os.path.join(os.path.expanduser("~"), |
This file contains hidden or 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 sys | |
import time | |
import subprocess | |
import types | |
from tempfile import TemporaryFile | |
def remote_sh(target_host, login, password, command_text, stdout=None, stderr=None): | |
winrs_text = 'winrs -remote:{0} -username:{1} -password:{2} -noprofile {3}'.format( | |
target_host, login, password, command_text) | |
#print('winrs text: {0}\n'.format(winrs_text)) |
NewerOlder