- fastladderをsystemdで上げ下げできるようにしたり、クローラーバグを直したり、おひとりシステム化したりした記録
- クローラーバグ修正関連は https://github.com/Akkiesoft/fastladder/commits/crawler にコミットした。英語ができなさすぎてプルリクがためらわれるしGoogle翻訳を使った。
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: utf-8 -*- | |
import os | |
import sys | |
import json | |
import tweepy | |
import urllib3 | |
from StringIO import StringIO | |
from PIL import Image,ImageDraw,ImageFont,ImageOps |
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
# -*- coding: utf-8 -*- | |
require 'zlib' | |
require 'base64' | |
Plugin.create(:tweet_zlib) do | |
def deflate(string) | |
z = Zlib::Deflate.new(9) | |
dst = z.deflate(string, Zlib::FINISH) |
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
# -*- frozen_string_literal: true -*- | |
source 'https://rubygems.org' | |
gem 'ruby-lzma', '0.4.3' |
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
OAuth2::Error invalid_grant: 指定された認証許可は無効であるか、期限切れ、取り消されている、リダイレクトURIの不一致、または別のクライアントに発行されています。 | |
{"error":"invalid_grant","error_description":"���������������������������������������������������������������������������������������������������������������URI������������������������������������������������������������������������������"} | |
/Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/oauth2-1.4.0/lib/oauth2/client.rb:146:in `get_token' | |
/Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/oauth2-1.4.0/lib/oauth2/strategy/password.rb:23:in `get_token' | |
/Users/akkie/.mikutter/plugin/mikutter丼/models.rb:58:in `build' | |
/Users/akkie/.mikutter/plugin/mikutter丼/world_setting.rb:13:in `block (2 levels) in <top (required)>' | |
{MIKUTTER_DIR}/core/plugin/change_account/change_account.rb:84:in `instance_eval' | |
{MIKUTTER_DIR}/core/plugin/change_account/change_account.rb:84:in `block in boot_wizard' | |
{MIKUTTER_DIR}/core/plugin/gtk/dialog_window.rb:172:in `instance_eval' | |
{MIKUTTER_DIR}/core/plugin/gtk/dialog_windo |
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
from mastodon import Mastodon, StreamListener | |
mstdn = Mastodon( | |
client_id = 'YOUR_CLIENT_ID', | |
client_secret = 'YOUR_CLIENT_SECRET', | |
api_base_url = 'https://social.mikutter.hachune.net' | |
) | |
mstdn.log_in( | |
username = 'YOUR_ENAIL', | |
password = 'YOUR_PASSWORD', |
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
- hosts: docker | |
become: yes | |
tasks: | |
- apt: | |
name: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- software-properties-common | |
update_cache: yes |
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
<?php | |
$scope = "read write"; | |
$callback = "http://eject.kokuda.org/joya/don/joya.php"; |
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
/Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:66:in `resume': fiber called across stack rewinding barrier | |
from /Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-deferred-2.0.0/lib/delayer/deferred/worker.rb:66:in `block in resume_pass' | |
from /Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-0.0.2/lib/delayer/procedure.rb:24:in `run' | |
from /Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-0.0.2/lib/delayer/extend.rb:58:in `run_once' | |
from /Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-0.0.2/lib/delayer/extend.rb:30:in `run' | |
from /Users/akkie/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/delayer-0.0.2/lib/delayer.rb:43:in `method_missing' | |
from /Users/akkie/mikutter/core/plugin/gtk/delayer.rb:10:in `block in boot' | |
from /Users/akkie/mikutter/core/mui/gtk_extension.rb:256:in `run' | |
from /Users/akkie/mikutter/core/mui/gtk_extension.rb:256:in `block in confirm' | |
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
# based on inkyphat module: https://github.com/pimoroni/inky-phat | |
# reference: https://boeeerb.co.uk/creating-a-monzo-pot-epaper-tracker/ | |
# how to use | |
# import ws_inky as inkyphat | |
import sys | |
import time | |
import atexit | |
import spidev |