Window AppMenu Applet 



save changes in stash with message and interactive changes

Terminal:
git stash save -p -m "custom message"


list changes in stash
Terminal:
git stash list


get from stash at position 0 witout remove register the stash
Terminal:
git stash apply --index 0

get from stash at position 0 remove register the stash
Terminal:
git stash pop 0

get from stash at position 0 remove register the stash
Terminal:
git stash drop 0


manually stash
Terminal:
man git stash









first disable compositor and change to OpenGL3.1



disable image of lockscreen


disable blur

Terminal:
nano /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml

search: WallpaperFaderadd attribute if dont exist or change value
visible: false
















first clone

Terminal:
git clone https://github.com/localstack/localstack.git

cd and reset to commit
Terminal:
cd localstack && git reset --hard cd3efec


run with docker-compose
Terminal:
sudo docker-compose up

install aws-cli
Terminal:
pip instasll awscli


create bucket
Terminal:
export AWS_ACCESS_KEY_ID=foo && export AWS_SECRET_ACCESS_KEY=foo  && aws --endpoint-url=http://localhost:4572/ s3 mb s3://mybucket $@

you can see the bucket created tohttp://localhost:8080/#!/infra










add credentials to .env laravel
Terminal:
AWS_ACCESS_KEY_ID=foo
AWS_SECRET_ACCESS_KEY=foo
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=mybucket
AWS_URL=http://localhost:4572/



add new provider
\App\Providers\AwsS3ServiceProvider
Terminal:
<?php

namespace App\Providers;

use Illuminate\Support\Facades\Storage;
use Illuminate\Support\ServiceProvider;
use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;

/**
 * Class AwsS3ServiceProvider
 * @package App\Providers
 */
class AwsS3ServiceProvider extends ServiceProvider
{

    /**
     * Perform post-registration booting of services.
     *
     * @return void
     */
    public function boot()
    {

        Storage::extend('s3', function ($app, $config) {

            $args = [
                'credentials' => [
                    'key'    => $config[ 'key' ],
                    'secret' => $config[ 'secret' ],
                ],
                'version'     => 'latest',
                'region'      => $config[ 'region' ],
                'endpoint'    => $config[ 'url' ],
            ];
            if ( !empty($config[ 'url' ])) {
                $args[ 'url' ] = $config[ 'url' ];
            }
            $client = new S3Client($args);

            return new Filesystem(new AwsS3Adapter($client, $config[ 'bucket' ]));
        });
    }

    /**
     * Register bindings in the container.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}





add provider to contig/app.php
Terminal:
App\Providers\AwsS3ServiceProvider::class,









looking blame process delay booting
Terminal:
systemd-analyze blame


looking dependent process
Terminal:
systemctl show -p Requires lvm2-monitor.service


Terminal:
systemctl disable NetworkManager-wait-online.service





if you want see all services starting when loading your system then do this:


Terminal:
nano /etc/default/grub

in variable

Terminal:
GRUB_CMDLINE_LINUX_DEFAULT=

and remove of  only

Terminal:
quiet splash

run this command

Terminal:
update-grub










install manage keyring
Terminal:
sudo pacman -S seahorse


search the application



change the password keyring (sorry for the picture are ubuntu, but seahorse is same application)





write old password





now type password in blank





accept use unencrypted passwords




That’s it! Restart your computer for the setting to take effect. Next time you launch Chrome or Chromium browser, you should not see keyring request.




Source: https://www.fosslinux.com/2561/how-to-disable-keyring-in-ubuntu-elementary-os-and-linux-mint.htm


it is very easy hehe

change in your .env

this QUEUE_DRIVER=redis

for this QUEUE_DRIVER=sync





Terminal:
sudo pacman -S cpupower

Terminal:
systemctl start cpupower && systemctl enable cpupower

check type driver
Terminal:
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver

if is intel_pstate


you should be this:
Terminal:
nano /etc/default/grub

replace for this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_pstate=disable "


Terminal:
sudo update-grub


you need restart the computer
Terminal:
sudo reboot

when start yout computer again
Terminal:
 sudo cpupower frequency-set -d 1.20Ghz -u 2.20Ghz -g powersave -r
and should be change the frequency and gobernator

check changes
Terminal:
cpupower frequency-info

make permanent configuration
Terminal:
 sudo nano /etc/default/cpupower


restart you computer
Terminal:
sudo reboot

check changes
Terminal:
cpupower frequency-info

BONUS

install tool
Terminal:
sudo pacman -S msr-tools

script disable turbo-boost cpu
https://gitlab.com/cirelramos/oh-my-zsh/raw/master/turbo-boost.sh

change permisson execute
Terminal:
sudo chmod +x ~/turbo-boost.sh
execute disable
Terminal:
sudo  ~/.oh-my-zsh/turbo-boost.sh disable

execute enable
Terminal:
sudo  ~/.oh-my-zsh/turbo-boost.sh enable

check changes
Terminal:
cpupower frequency-info

Manager cpupower




Source:

https://wiki.archlinux.org/index.php/CPU_frequency_scaling_(Espa%C3%B1ol)

https://unix.stackexchange.com/questions/424602/is-it-possible-to-set-a-constant-lowest-cpu-frequency-under-the-modern-pstate

https://lenovopress.com/lp0826.pdf

https://askubuntu.com/questions/613498/automatic-switching-between-performance-and-powersave-mode-on-plugging-in-out-th


link https://www.powtoon.com/home/?

connect to docker



configure cli interpeter



configure image




configure remote interprete



global config


or specifc network






run testunit





composer



phpunit






test result















Step 1: Create Authentication SSH-Kegen Keys on – (192.168.0.12)

First login into server 192.168.0.12 with user tecmint and generate a pair of public keys using following command.
Terminal:
ssh-keygen -t rsa


Step 2: Create .ssh Directory on – 192.168.0.11
Use SSH from server 192.168.0.12 to connect server 192.168.0.11 using sheena as user and create .sshdirectory under it, using following command.
Terminal:
ssh sheena@192.168.0.11 mkdir -p .ssh


Step 3: Upload Generated Public Keys to – 192.168.0.11Use SSH from server 192.168.0.12 and upload new generated public key (id_rsa.pub) on server 192.168.0.11under sheena‘s .ssh directory as a file name authorized_keys.
Terminal:
cat .ssh/id_rsa.pub | ssh sheena@192.168.0.11 'cat >> .ssh/authorized_keys'

Step 4: Set Permissions on – 192.168.0.11Due to different SSH versions on servers, we need to set permissions on .ssh directory and authorized_keys file
Terminal:
ssh sheena@192.168.0.11 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"


Step 5: Login from 192.168.0.12 to 192.168.0.11 Server without Password
Terminal:
ssh sheena@192.168.0.11








Package.json configuration

First of all you have to create a new Debugging script like this:

Terminal:
"debug": "node $NODE_DEBUG_OPTION node_modules/.bin/webpack-dev-server --config ./path/to/webpack.config.js"


webpack configuration

You have to add this command line:
Terminal:
devtool: 'eval-source-map'


Editor configuration

and then you have to cofigurate your IDE:

NPM


JAVASCRIPT REMOTE debug



configure browser debug




example package.json and webpack https://drive.google.com/file/d/1MRDj84Yn9iHAP-u_OeDJLshxB_82sdOV/view?usp=sharing







Source: https://stackoverflow.com/questions/38800164/intellij-idea-how-can-i-create-an-breakpoint-that-debug-webpack


https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/

















run adb devices

Terminal:
adb devices





Run adb tcpip 5555

Terminal:
adb tcpip 5555



Disconnect your device (remove the USB cable). Go to the Settings -> About phone -> Status to view the IP address of your phone.

Terminal:
adb connect <IP address of your device>:5555   


Terminal:
adb devices  











install package
Terminal:
sudo apt-get install id3v2
check metadata just now
Terminal:
id3v2 -l some_file.mp3
erease metada
Terminal:
id3v2 -s some_file.mp3
erease metada
Terminal:
id3v2 -s some_file.mp3

all files a folder
Terminal:
for i in *.mp3; do echo "Processing $i"; id3v2 -s "$i"; done


Fuente: https://askubuntu.com/questions/26911/erase-and-rewrite-mp3-id3-tags