For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
This file contains 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
# _____ _ _____ _ _ | |
# | _ |_ _| |_ ___| | |_|___ | |
# | | | | _| . | --| | | . | | |
# |__|__|___|_| |___|_____|_|_| _| | |
# |_| | |
# | |
# By Abhishta (github.com/abhishtagatya) | |
# pip install gTTs | |
# pip install moviepy |
This file contains 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
'use client'; | |
import type { JSXElementConstructor, ReactNode } from 'react'; | |
type InferProps<T> = T extends JSXElementConstructor<infer P> ? P : never; | |
type ProviderWithProps<T extends JSXElementConstructor<unknown>> = [ | |
T, | |
Omit<InferProps<T>, 'children'> | |
]; |
This file contains 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 apt-get update | |
sudo apt-get install libjemalloc-dev | |
RUBY_CONFIGURE_OPTS='--with-jemalloc' rbenv install 2.6.3 | |
# test (look for jemalloc warnings) | |
MALLOC_CONF=invalid_flag:foo ruby -v |
This file contains 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
# https://blog.cloud-eng.nl/2022/11/26/environment-protection-tags/ | |
name: ⚙️ deployment | |
# Controls when the workflow will run | |
on: | |
push: | |
tags: | |
- 'release_*' | |
jobs: |
A simple JavaScript script that adds a floating "Archive" button to specific news websites, allowing quick archiving via archive.md.
This file contains 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
# Using the pantheon recipe / wordpress_network framework, we add a config to the | |
# appserver_nginx service to use our own server and vhost files. Copy the files lando | |
# uses and on the wordpress_network.conf.tpl and added wp/ to the rewrite | |
# rules so lando knows where our WP files live within our Bedrock setup. | |
appserver_nginx: | |
type: nginx | |
ssl: true | |
config: | |
server: 'private/config/lando/nginx.conf.tpl' |
This file contains 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
#!/bin/bash | |
# Function: aidir | |
# Description: | |
# This function analyzes the project code in a given directory by recursively | |
# finding all files and processing them. It skips directories specified in the | |
# environment variable AIDIR_SKIP. If AIDIR_SKIP is not set, no directories are skipped. | |
# The function concatenates the content of text/source files into a single string | |
# and saves it to ~/.aidir. Then, it starts a REPL session with aichat, using the | |
# concatenated content as input. |
This file contains 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
<style id="fslightbox-customizations"> | |
a.open-gallery > img { | |
width: 80%; | |
max-width: 745px; | |
border: 3px dashed white; | |
} | |
.fslightbox-container { | |
background: black; | |
} | |
</style> |
They should work. Works for all cores of your host system. Also you can download ESXi from here.
NewerOlder