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
| toggleInstantHotspot = [[ | |
| tell application "System Events" | |
| tell process "SystemUIServer" | |
| tell menu bar 1 | |
| set menuBarItems to (every menu bar item whose description begins with "Wi-Fi") | |
| if (count of menuBarItems) is greater than 0 then | |
| set wifiMenuBarItem to item 1 of menuBarItems | |
| click wifiMenuBarItem | |
| --接続中か判定 | |
| set menuItemDisconnects to (every menu item of menu 1 of wifiMenuBarItem whose name ends with "との接続を解除") |
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
| ;-------------------------------- 設定 ---------------------------------- | |
| TETHERING_SSIDS = {"iPhone 7 Plus", "iPhone 8 Plus"} | |
| PASSWORD = "0000" | |
| ;-------------------------------------------------------------------------- | |
| DEBUG = true | |
| ;-------------------------------------------------------------------------- | |
| function setApplicationFirewall(arg) | |
| hs.execute("echo " .. PASSWORD .. " | sudo -S /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate " .. arg) | |
| end |
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/ruby | |
| # iOS 13.2で搭載されたメッセージ着信時の読み上げ機能(AirPods使用時限定)を活用するため | |
| # macOSのメッセージアプリから機械的にメッセージを送るスクリプト | |
| # ■使い方 | |
| # 引数としてテキストを渡す(空白が入る場合はダブルクォーテーションで括る) | |
| # send_message.rb "なんかテキスト" | |
| # | |
| # 標準入力としてテキストを渡す |
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
| --タイトル取得からの〜 | |
| tell application "Preview" | |
| set n to name of window 1 | |
| --Window名から全体のページ数と現在のページ数をパースする | |
| --それを監視しながらめくっていく | |
| end tell | |
| --全画面化 | |
| tell application "Preview" to activate | |
| tell application "System Events" |
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
| javascript:var%20url%3DString(window.location.href)%3Bvar%20match%3Durl.match(%2F%26page%3D(%5Cd%2B)%2F)%3Bif(match%20!%3Dnull)%7Bvar%20page%3Dmatch%5B1%5D%3Bvar%20nextPage%3DString(Number(page)%2B%201)%3BnextUrl%3Durl.replace(match%5B0%5D%2Cmatch%5B0%5D.replace(page%2CnextPage))%3Bwindow.location%3DnextUrl%3B%7Delse%7Bwindow.location%3Durl%20%2B%20%22%26page%3D2%22%3B%7Dvoid(0); |
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
| javascript:var%20h%3DString(location.hostname)%3Bif(h)%7Bvar%20prefix%3D%22https%3A%2F%2Fapp.neilpatel.com%2Fjp%2Ftraffic_analyzer%2Foverview%3Fdomain%3D%22%3Bwindow.open(prefix%20%2B%20encodeURIComponent(h)%2B%20%22%26country%3Djp%22)%3B%7Dvoid(0); |
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
| javascript:(function()%20%7B%20%20%20%20%20var%20h%20=%20String(location.hostname);%20%20%20%20%20if%20(h)%20%7B%20%09if%20(h.match(/blog.livedoor.jp/))%20%7B%20%09%20%20%20%20window.open(%22http://hemine.co/counters/livedoor?url=%22%20+%20%09%09encodeURIComponent(String(location.href)));%20%09%7D%20else%20%7B%20%09%20%20%20%20window.open(%22http://www.similarweb.com/website/%22%20+%20encodeURIComponent(h)%20+%20%09%09%22?utm_source=widget.similarweb.com&utm_medium=TrafficWidget&utm_campaign=mb_TrafficWidget_widget.similarweb.com%23overview%22);%20%09%7D%20%20%20%20%20%7D%20%7D)(); |
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
| // ==UserScript== | |
| // @name XRPSearchFilter | |
| // @namespace http://hitoriblog.com/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author moyashi | |
| // @match https://twitter.com/search* | |
| // @require https://code.jquery.com/jquery-3.3.1.slim.min.js | |
| // @grant none | |
| // ==/UserScript== |
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 ruby | |
| # coding: utf-8 | |
| require 'csv' | |
| require 'time' | |
| require 'kconv' | |
| # coincheckの「設定>取引履歴」( https://coincheck.com/ja/monthly_trade/confirmations ) からダウンロードできる XXXXXXX_201XXX_1.csv を、 | |
| # Gtax ( https://crypto-city.net/balance ) にインポートできる共通フォーマット形式のcsvに変換するRubyスクリプト | |
| # 共通フォーマットサンプル.xlsxはxslxだけど、csvでもインポートできてるぽい |
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 ruby | |
| # coding: utf-8 | |
| # coincheck ( https://coincheck.com/ja/affiliates ) からダウンロードできる affiliates-201x-xx-xx_2.csv を、 | |
| # Gtax ( https://crypto-city.net/balance ) にインポートできる共通フォーマット形式のcsvに変換するRubyスクリプト | |
| # 共通フォーマットサンプル.xlsxはxslxだけど、csvでもインポートできてるぽい | |
| # 無保証 | |
| # 使い方 |