I hereby claim:
- I am fmt on github.
- I am fmt (https://keybase.io/fmt) on keybase.
- I have a public key ASDb8hZy9RBCRMHWiYs49ybu4iSvkrK-6RZa9Z2-PKu2dgo
To claim this, I am signing this object:
| """ | |
| electron_patcher.py: Enforce 'use-angle@1' in Chrome and Electron applications | |
| This script patches Chromium-based applications (including Electron apps and Chrome) | |
| to enforce the use of OpenGL rendering through the 'use-angle@1' setting. | |
| Features: | |
| - macOS only: Optimized for macOS Electron applications | |
| - Auto-detection: Automatically finds Electron applications in standard locations | |
| - Specific apps: Has special handling for common apps like Spotify, Discord, VSCode, Microsoft Teams |
I hereby claim:
To claim this, I am signing this object:
| <html> | |
| <head> | |
| <style> | |
| #fbChat { | |
| position: fixed; | |
| right: 24px; | |
| bottom: 24px; | |
| width: 60px; | |
| height : 60px; | |
| cursor: pointer; |
| {% comment %} | |
| To add a companion product to the cart automatically if a primary product is in cart: | |
| 1. Create a new link list under your Navigation tab. | |
| 2. In that link list, make the first link point to companion product. | |
| 3. Copy your link list handle where indicated at line 8: | |
| {% endcomment %} | |
| {% assign linklist = linklists['put-your-link-list-handle-here'] %} | |
| {% comment %} |
| {% layout none %}{% comment %} | |
| /* | |
| * Shopify Product RSS feed, also needs Cloudflare Workers | |
| * for Content-Type fix to application/rss+xml, because | |
| * Shopify only supports text/html | |
| * | |
| * Copyright (c) 2018 @fmt github.com/fmt | |
| * Licensed under the MIT license: | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * Based on @freakdesign blog feed gist |
| <?php | |
| if(defined('WP_CRON_CUSTOM_HTTP_BASIC_USERNAME') && defined('WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD')) { | |
| function http_basic_cron_request($cron_request) { | |
| $headers = array('Authorization' => sprintf('Basic %s', base64_encode(WP_CRON_CUSTOM_HTTP_BASIC_USERNAME . ':' . WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD))); | |
| $cron_request['args']['headers'] = isset($cron_request['args']['headers']) ? array_merge($cron_request['args']['headers'], $headers) : $headers; | |
| return $cron_request; | |
| } |
Theory:
your git repository can have more than one remote server; In this case we want to have two:
origin)upstream)How to make a private fork from github to gitlab
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |