These are my personal notes. It does not mean it is for you. I will update this from time to time.
Install spotify:
sudo dnf install lpf-spotify-client -yAdd our user to pkg build group:
| # install docker | |
| ``` | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| echo \ | |
| "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
In some cases, only these lines will work
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
rm -rf ~/.config/$product*/eval 2> /dev/null
rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
doneBut if not, try these
| package cache | |
| import ( | |
| "sync" | |
| "time" | |
| ) | |
| // Cache is a basic in-memory key-value cache implementation. | |
| type Cache[K comparable, V any] struct { | |
| items map[K]V // The map storing key-value pairs. |
| You will need to add you user to the 'apache' group first. Log out afhter you have done that. | |
| $ sudo mkdir /var/www/html/project | |
| $ sudo chown -R $USER:apache /var/www/html/project | |
| $ sudo chmod -R 775 /var/www/html/project |
| #!/bin/bash | |
| dbus-monitor --system "type='signal',path='/org/freedesktop/UPower/devices/battery_BAT0',member='PropertiesChanged'" | while read LINE; do | |
| echo ${LINE} | grep battery_BAT0 | grep -q PropertiesChanged | |
| if [ $? -eq 0 ]; then | |
| BATT_STAT=$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.DBus.Properties.Get string:org.freedesktop.UPower.Device string:State | awk '{ print $3; }') | |
| if [ $BATT_STAT -eq 1 ] || [ $BATT_STAT -eq 4 ]; then | |
| LEVEL=$(tuned-adm list | grep -q throughput-performance && echo "throughput-performance" || echo "balanced") | |
| elif [ $BATT_STAT -eq 5 ]; then | |
| LEVEL="balanced" |
| A blood black nothingness began to spin. | |
| Began to spin. | |
| Let's move on to system. | |
| System. | |
| Feel that in your body. |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net" | |
| "time" | |
| ) | |
| func main() { |
| // Copyright (c) 2015-2021, bacondither | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions | |
| // are met: | |
| // 1. Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer | |
| // in this position and unchanged. | |
| // 2. Redistributions in binary form must reproduce the above copyright |