Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
grep -inRsHl --include \*.php "str" ./ | |
# -i = insensitive | |
# -R = recursive |
source: https://quux.wiki.zoho.com/WMIC-Snippets.html | |
----- | |
System, BIOS, Motherboard | |
This first example shows a few variations of the most common WMI query. We ask a WMI object (computersystem, or bios, or baseboard in the examples below) to return the values for a few of its properties. It returns the results in its default tabular format. | |
C:\Tools>wmic computersystem get domain, EnableDaylightSavingsTime, Manufacturer, Model, PartOfDomain, TotalPhysicalMemory, username | |
Domain EnableDaylightSavingsTime Manufacturer Model PartOfDomain TotalPhysicalMemory UserName |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
# ~/.config/starship.toml | |
[battery] | |
full_symbol = "🔋" | |
charging_symbol = "🔌" | |
discharging_symbol = "⚡" | |
[[battery.display]] | |
threshold = 30 | |
style = "bold red" |
# Paste this function into your ~/.bashrc | |
# Before use, install the xclip package of your distro, if isn't installed yet. | |
# Create a directory, copy the full path to the clipboards and enter the directory | |
md() { | |
mkdir "$1" || return 1 | |
realpath "$1" | tr -d '\n' | xclip -selection clipboard | |
realpath "$1" | tr -d '\n' | xclip | |
cd "$1" | |
} |
#!/bin/bash | |
# It's supposed to run on a interval. Example to run each 5 seconds: | |
# | |
# watch -n 5 ./check_cpu_temperature.bash | |
cpu_temp=$(sensors | grep "CPU Temperature" | grep -Eo '[0-9]+' | head -n 1) | |
echo "$cpu_temp" >> ~/.cpu-temperature | |
if ((cpu_temp > 75)); then |
sudo dnf swap wireplumber pipewire-media-session | |
systemctl --user restart pipewire-media-session | |
reboot |
#!/bin/bash | |
# Example output: | |
# Disk: sda (894.25 GB) | |
# Largest partition: sda1 | |
# Used space: 878 GB | |
# Available space: 17 GB | |
# Disk: sdb (222.57 GB) | |
# Largest partition: sdb2 |