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 bash | |
| ### Hypr bindings | |
| # bindeld = ,XF86KbdBrightnessUp, Keyboard brightness up, exec, /usr/local/bin/backlightctl up | |
| # bindeld = ,XF86KbdBrightnessDown, Keyboard brightness down, exec, /usr/local/bin/backlightctl down | |
| ### | |
| if [ $# -lt 1 ]; then | |
| ACTION="up" | |
| else |
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
| const CryptoJS = require("crypto-js"); | |
| const requestBody = pm.request.body.raw; | |
| const secretKey = pm.environment.get("WEBHOOK_SIGNATURE_KEY"); | |
| if (requestBody && secretKey) { | |
| const hmac = CryptoJS.HmacSHA256(requestBody, secretKey).toString(); | |
| pm.environment.set("WEBHOOK_REQ_SIGNATURE", hmac); | |
| console.log("Generated HMAC Signature:", hmac); | |
| } else { |
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
| List(items, id: \.0) { | |
| ResultsSectionView(item: item) | |
| .listRowSpacing(0) | |
| .listRowInsets(EdgeInsets()) | |
| .listRowSeparator(.hidden) | |
| } | |
| .listStyle(.inset) | |
| .listSectionSpacing(0) | |
| .scrollIndicators(.hidden) | |
| .contentMargins(.top, 0, for: .scrollContent) |
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
| import Foundation | |
| import SwiftUI | |
| class AppDelegate: NSObject, UIApplicationDelegate { | |
| func application(_ application: UIApplication, | |
| didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil | |
| ) -> Bool { | |
| customizeNavigationBarAppearance() | |
| } | |
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
| diff -ruN php-8.2.1/ext/date/lib/parse_date.c php-8.2.1-gh10218/ext/date/lib/parse_date.c | |
| --- php-8.2.1/ext/date/lib/parse_date.c 2023-01-03 13:40:55.000000000 -0500 | |
| +++ php-8.2.1-gh10218/ext/date/lib/parse_date.c 2023-01-17 06:37:01.121532677 -0500 | |
| @@ -787,7 +787,7 @@ | |
| (**ptr >= 'A' && **ptr <= 'Z') || | |
| (**ptr >= 'a' && **ptr <= 'z') || | |
| (**ptr >= '0' && **ptr <= '9') || | |
| - **ptr == '/' || **ptr == '_' || **ptr == '-' | |
| + **ptr == '/' || **ptr == '_' || **ptr == '-' || **ptr == '+' | |
| ) { |
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
| sudo -u www-data \ | |
| SCRIPT_NAME=/status \ | |
| SCRIPT_FILENAME=/status \ | |
| REQUEST_METHOD=GET \ | |
| QUERY_STRING=full \ | |
| cgi-fcgi -bind -connect /var/run/php/php7.0-fpm.sock |
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
| sudo strace -f -tt -o /tmp/php.trace -s1024 -p `pgrep -f php-fpm | tr '\n' ','` |
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
| # see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
| # core | |
| brew install coreutils | |
| # key commands | |
| brew install binutils | |
| brew install diffutils | |
| brew install ed --default-names | |
| brew install findutils --with-default-names |
NewerOlder