Open the terminal and run the below command
pmset -g | grep hibernatemode
Note down the number in safe place, you'll need this later if you want to disable it
Now, run the below commands one by one.
Open the terminal and run the below command
pmset -g | grep hibernatemode
Note down the number in safe place, you'll need this later if you want to disable it
Now, run the below commands one by one.
Image will be uploaded |
const findPropertyValue = (results, propertyName) => { | |
const property = results.find((item: { properties: { Key: { title: { text: { content }; }[]; }; }; }) => item.properties.Key.title[0].text.content === propertyName); | |
return property ? property.properties.Value.rich_text[0].text.content : null; | |
}; | |
// then just do | |
const somevar = findPropertyValue(response.results, "My Phone Number") | |
// Table should follow this structure | |
https://imgur.com/a/P2kssZV |
sudo apt install curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
#!/bin/bash | |
# Prerequisite: Node, NPX | |
folder_path="Wallpapers" | |
for file_path in "$folder_path"/*.{jpg,png,jpeg}; do | |
if [[ -f "$file_path" ]]; then | |
echo "Generating Blurhash for $file_path" | |
npx blurhash-cli "$file_path" --local | |
echo "============================================" |
upstream freshrss { | |
server 127.0.0.1:3500; | |
keepalive 64; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl http2; |
#!/bin/bash | |
# Setup Reference: https://blog.sbstp.ca/vps-pihole/ | |
# Run this script as CRON Job in your laptop or any device. | |
# Author - mcnaveen<[email protected]> | |
ip=$(curl -s https://api.ipify.org | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+') | |
ip_file="ip_address.txt" | |
vps_ip="YOUR_VPS_IP_ADDRESS" | |
if [[ -f $ip_file ]]; then |
const { spawn } = require("child_process"); | |
const outputFile = "output.mp4"; | |
const duration = 4; // Duration in seconds | |
const inputImage = "photo.jpg"; | |
const outputDimensions = "1080:1920"; // Output video dimensions | |
const ffmpegCommand = `ffmpeg -loop 1 -t ${duration} -i ${inputImage} -i ${inputImage} -filter_complex "[0:v]scale=${outputDimensions},setsar=1:1[bg];[bg]boxblur=5:2[bg];[bg][1:v]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:v libx264 -preset superfast -pix_fmt yuv420p -t ${duration} ${outputFile}`; | |
const ffmpegProcess = spawn(ffmpegCommand, { shell: true }); |
name: Deploy Next.js Site via SSH | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
#!/bin/bash | |
while true; do | |
# Set a random wallpaper from the specified folder | |
feh --randomize --bg-fill ~/Pictures/Wallpapers/* | |
# Get the current wallpaper from .fehbg | |
wallpaper="$(cat "${HOME}/.fehbg" | awk -F "'" '{print $2}')" | |
# Apply pywal color scheme to desktop |