A collection of commands that change the Arc Browser icon.
Theme | Command |
---|---|
Candy Arc | defaults write company.thebrowser.Browser currentAppIconName candy |
<^>!'::Send `` ; AltGr + ' => ` | |
<^>!vkDD::Send ~ ; AltGr + ì => ~ |
#!/bin/sh | |
# Check for arguments | |
if [ $# -eq 0 ]; then | |
echo "No arguments provided. First argument has to be version, e.g. '1.8.1', and second one the name of framework, e.g. 'NetworkModule'" | |
exit 1 | |
fi | |
# Set properties | |
FRAMEWORK_VERSION=$1 |
We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much
const defaultTheme = require('tailwindcss/defaultTheme'); | |
module.exports = { | |
purge: [ | |
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', | |
'./storage/framework/views/*.php', | |
'./resources/views/**/*.blade.php', | |
'./resources/js/**/*.vue', | |
], | |
const TELEGRAM_BOT_TOKEN = '110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw'; // https://core.telegram.org/bots#creating-a-new-bot | |
export const verifyTelegramWebAppData = async (telegramInitData: string): boolean => { | |
// The data is a query string, which is composed of a series of field-value pairs. | |
const encoded = decodeURIComponent(telegramInitData); | |
// HMAC-SHA-256 signature of the bot's token with the constant string WebAppData used as a key. | |
const secret = crypto |
#!/bin/bash | |
# reset jetbrains ide evals v1.0.4 | |
OS_NAME=$(uname -s) | |
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode" | |
if [ "$OS_NAME" == "Darwin" ]; then | |
echo 'macOS:' | |
for PRD in $JB_PRODUCTS; do |
### Test on https://github.com/yousseb/meld/releases/tag/osx-20 | |
### OSX - 3.21.0 (r4) Sonoma | |
### !!! Note: You need put the Meld.app r4 build to the /Applications path first. | |
#!/bin/zsh | |
#Fix libpng16.16.dylib not found | |
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib | |
#Fix libbrotlidec.1.dylib not found |
// To compile this program, you need to install: | |
// sudo apt-get install libbluetooth-dev | |
// Then you can compile it with: | |
// cc scanner.c -lbluetooth -o scanner | |
// You can then run it with: | |
// ./scanner | |
// Copyright (c) 2021 David G. Young | |
// Copyright (c) 2015 Damian Kołakowski. All rights reserved. | |
// License: BSD 3. See: https://github.com/davidgyoung/ble-scanner |