Resume claude after running out of usage limit. For Macos, it uses the automation scripts to resume usage.
For instance if your usage resets at 3pm
./resume_claude.sh "15:00"
Resume claude after running out of usage limit. For Macos, it uses the automation scripts to resume usage.
For instance if your usage resets at 3pm
./resume_claude.sh "15:00"
| ### colored and fuzzy go doc | |
| if which bat > /dev/null; then | |
| function _godoc() { | |
| if echo $1|grep -q -E "^([a-zA-Z0-9/]+)$"; then | |
| go doc ${@} | bat -p -l md | |
| elif echo $1|grep -q -E "^[a-zA-Z0-9/]+\.[a-zA-Z0-9.]+$"; then | |
| go doc ${@} | bat -p -l go | |
| elif echo $1|grep -q -E "^([a-zA-Z0-9/._-]+)/.*\.[a-zA-Z0-9.]+$"; then | |
| go doc ${@} | bat -p -l go | |
| else |
| <?php | |
| /** | |
| * This file can be dropped in wp-content/mu-plugins/ to be activated. | |
| * It will add post thumbnails to the RSS feed. | |
| * The image can then be used in MailChimp templates with the *|RSSITEM:IMAGE|* merge tag. | |
| * This implementation is based on useful indications by [vick](https://stackoverflow.com/a/48549541) | |
| */ | |
| // add xml namespace for media element |
| import requests | |
| import base64 | |
| import random | |
| import urllib.request | |
| def download_image(url): | |
| name = random.randrange(10000000, 100000000) | |
| fullname = str(name) + ".jpg" | |
| urllib.request.urlretrieve(url, fullname) |
1- Go to: https://www.facebook.com/{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE
You can use Filter to choose year or month.
2- Open the console and run the following JavaScript code and wait:
setInterval(() => {
for (const Button of document.querySelectorAll('div[aria-label="Action options"]')) {
Button.click()
document.querySelector('div[role="menuitem"]').click()
}
}, 1000)
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
| 0% | |
| 0% risk | |
| 777 | |
| 99% | |
| 99.9% | |
| 100% | |
| 100% more | |
| #1 | |
| $$$ | |
| 100% free |
| # open terminal | |
| cmd - return : open -n -a "Terminal" | |
| # open chrome | |
| cmd + shift - return : open -n -a "Google Chrome" | |
| # moves focus between windows in the current focused display | |
| alt - h : yabai -m window --focus west | |
| alt - j : yabai -m window --focus south | |
| alt - k : yabai -m window --focus north |
| import base64, requests, json | |
| def header(user, password): | |
| credentials = user + ':' + password | |
| token = base64.b64encode(credentials.encode()) | |
| header_json = {'Authorization': 'Basic ' + token.decode('utf-8')} | |
| return header_json | |
| def upload_image_to_wordpress(file_path, url, header_json): | |
| media = {'file': open(file_path,"rb"),'caption': 'My great demo picture'} |
| ############ WordPress #################### | |
| # Disable logging for favicon and robots.txt | |
| location = /favicon.ico { | |
| try_files /favicon.ico @empty; | |
| access_log off; | |
| log_not_found off; | |
| expires max; | |
| } |