Información extraída de HolisticsBlog
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
#!/usr/bin/env bash | |
# Fedora 35 VM using libvirt on Fedora 36 workstation | |
# Clean OS install with with user account 'admin' created with administrator privileges | |
# turning off firewalld for testing purposes | |
# refer to firewall-cmd documentation to configure firewall ports on container host | |
sudo systemctl stop firewalld | |
sudo dnf install -y podman-compose | |
mkdir -p /home/admin/pihole/etc-pihole |
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
import React, {useEffect, useRef, useState} from 'react'; | |
import './About.css'; | |
let textOptions = { | |
cookieEnabled: { | |
true: '', | |
false: 'You\'ve turned cookies off? Wow. ', | |
}, platform: { | |
win: 'Chillin\' on your Windows' | |
}, deviceMemory : { |
To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.
On a Linux system, the ESP is typically mounted on /boot/efi
or /efi
. Whithin you should also find a EFI
directory, e.g. /boot/efi/EFI
or /efi/EFI
. This article assumes that the ESP is mounted on /efi
and that the /efi/EFI
directory exists. You can replace that with the mount point your system uses.
The HP-specific files are located in /efi/EFI/HP
or /efi/EFI/Hewlet-Packard
. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.
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
// Inspired by Tailwind Daisy UI progress bar: https://daisyui.com/components/radial-progress/ | |
// This is a custom-made progress circular/radial progress bar with centered percentage text. | |
// Tested with Tailwind 3.x. Should work with lower versions of Tailwind CSS as well. | |
STEP 1: Add the following custom CSS: | |
.progress-ring__circle { | |
transition: stroke-dashoffset 0.35s; | |
transform: rotate(-90deg); | |
transform-origin: 50% 50%; |
- Названия коммитов должны быть согласно гайдлайну
- Должен использоваться present tense ("add feature" not "added feature")
- Должен использоваться imperative mood ("move cursor to..." not "moves cursor to...")
- init: start youtube-task
- init: start mentor-dashboard task
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
#include <stdio.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <linux/i2c-dev.h> | |
// Terrible portability hack between arm-linux-gnueabihf-gcc on Mac OS X and native gcc on raspbian. | |
#ifndef I2C_M_RD | |
#include <linux/i2c.h> | |
#endif |
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
/* | |
* Boilerplate code for handling cameras for computer vision tasks. | |
* Date Created: 2/4/2020 | |
* Author: Sarvesh Thakur | |
*/ | |
#include "Interaction.h" | |
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
<?php | |
// NOTE, see updates function managedwphosting_woocommerce_order_query_args | |
/** | |
* Inspired by https://stackoverflow.com/questions/53140009/add-search-by-customer-ip-address-to-woocommerce-order-search | |
* Code idea borrowed from https://www.skyverge.com/blog/filtering-woocommerce-orders/ && https://gist.github.com/bekarice/41bce677437cb8f312ed77e9f226a812 | |
*/ | |
add_filter( 'request', 'filter_orders_by_payment_method_query' ); | |
function filter_orders_by_payment_method_query( $vars ) { |
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
local SEQ = { | |
[0] = "A", "B", "C", "D", "E", "F", "G", "H", | |
"I", "J", "K", "L", "M", "N", "O", "P", | |
"Q", "R", "S", "T", "U", "V", "W", "X", | |
"Y", "Z", "a", "b", "c", "d", "e", "f", | |
"g", "h", "i", "j", "k", "l", "m", "n", | |
"o", "p", "q", "r", "s", "t", "u", "v", | |
"w", "x", "y", "z", "0", "1", "2", "3", | |
"4", "5", "6", "7", "8", "9", "+", "/", | |
} |
NewerOlder