This file contains 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
#(Apache用)どのURLにアクセスしても、main.phpにアクセスできるようにする | |
Options FollowSymLinks | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /main.php [L] | |
</IfModule> |
This file contains 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
Header add Upgrade "Websocket" | |
Header add Connection "Upgrade" | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyPass / "ws://localhost:8065/" | |
ProxyPassReverse / "ws://localhost:8065/" |
This file contains 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
Match group sftponly | |
ChrootDirectory /home/%u | |
X11Forwarding no | |
AllowTcpForwarding no | |
ForceCommand internal-sftp |
This file contains 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 | |
# Setting | |
ACCESS_TOKEN="CHANGE_HERE" | |
INSTANCE_ADDRESS="CHANGE_HERE" | |
# === There are system scripts. if you are not familiar the bash script, Please do not edit their scripts. === | |
SETINC=0 | |
if [ $ACCESS_TOKEN = "CHANGE_HERE" ]; then |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
初回セットアップスクリプトを追加したスクリプトです。これ一つでタイムラインをリアルタイムで見ることができるようになります。 | |
""" | |
""" | |
Code by YuzuRyo61. | |
mastodon.timeline.read.py の改良型。差分がそこそこあるので新しく貼り直し。 | |
CWの表記追加と、引数で使用するStreamを選択することができるようにしました。 | |
ちなみに、Streamの選択優先度は"home > local > public"の順になってます。 |
This file contains 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 os,sys, traceback, warnings, re | |
from mastodon import Mastodon | |
class Toot(): | |
def __init__(self): | |
with open("instance.txt") as a: | |
self.address = a.readlines() | |
toot = "" | |
self.tootl = "" |
This file contains 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
""" | |
もしかしたらいらないライブラリがあるかもしれません。その場合は適宜外してもらっても構いません。 | |
参考文献: | |
- https://qiita.com/civic/items/7358dc1c54ff8e71c326 | |
- https://github.com/civic/mastodon-auth-example/blob/master/mastodon_auth_example.py | |
""" | |
from urllib.parse import urlencode | |
import requests,json,os,re | |
class mstdnoauth: |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import webbrowser | |
import requests | |
import re | |
import json |
This file contains 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
javascript:var instance = window.prompt('インスタンスアドレスを入力してください。プロトコルは入れないでください(https://など)。');if(instance!=null){window.open('https://'+instance+'/share', 'mstjsshare', 'width=450, height=500, menubar=no, toolbar=no, scrollbars=no');} |
This file contains 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
Copyright 2018 YuzuRyo61 | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER D |
OlderNewer