First we go create account in docker-hub, when we have a account, login with this account in the computer
sudo docker login --username=your_user_name
create the repository
https://hub.docker.com/repository/create
create folder to project
mkdir -p ubuntu-ssh && cd ubuntu-ssh
add file to build image
touch Dockerfile
open file with your editor favorite, i use vim :)
vim Dockerfile
add this content
FROM ubuntu:18.04
# disable interactive functions
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get install ssh -y
CMD ["bash"]if you use vim, to save and exit press : and write wq and press ENTER
build the image local
sudo docker build . -t ubuntu-sshlist images
sudo docker imageswe copy the IMAGE ID
we create a tag of image
sudo docker tag e53082e90e87 your_user_name/ubuntu-ssh:latest
we push the image
sudo docker push your_user_name/ubuntu-ssh:latest
it is done, the image is ready in docker hub how this image https://hub.docker.com/r/cirelramos/ubuntu-ssh
sudo vim /etc/pulse/default.pa
you can append auto_switch=2 to load-module module-bluetooth-policy
======================================
load-module module-bluetooth-policy auto_switch=2
======================================
Link: https://archived.forum.manjaro.org/t/set-bluetooth-headset-default-to-hsp-hfp/144042/2
save changes in stash with message and interactive changes
git stash save -p -m "custom message"
list changes in stash
git stash list
get from stash at position 0 witout remove register the stash
git stash apply --index 0
get from stash at position 0 remove register the stash
git stash pop 0
get from stash at position 0 remove register the stash
git stash drop 0
manually stash
man git stash
first disable compositor and change to OpenGL3.1
disable blur
nano /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml
visible: false
first clone
git clone https://github.com/localstack/localstack.git
cd and reset to commit
cd localstack && git reset --hard cd3efec
run with docker-compose
sudo docker-compose up
install aws-cli
pip instasll awscli
create bucket
export AWS_ACCESS_KEY_ID=foo && export AWS_SECRET_ACCESS_KEY=foo && aws --endpoint-url=http://localhost:4572/ s3 mb s3://mybucket $@
add credentials to .env laravel
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
<?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
App\Providers\AwsS3ServiceProvider::class,
looking blame process delay booting
systemd-analyze blame
looking dependent process
systemctl show -p Requires lvm2-monitor.service
systemctl disable NetworkManager-wait-online.service
if you want see all services starting when loading your system then do this:
nano /etc/default/grub
in variable
GRUB_CMDLINE_LINUX_DEFAULT=
and remove of only
quiet splash
run this command
update-grub
install manage keyring
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
sudo pacman -S cpupower
systemctl start cpupower && systemctl enable cpupower
check type driver
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver
you should be this:
nano /etc/default/grub
replace for this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_pstate=disable "
sudo update-grub
you need restart the computer
sudo reboot
when start yout computer again
sudo cpupower frequency-set -d 1.20Ghz -u 2.20Ghz -g powersave -rand should be change the frequency and gobernator
check changes
cpupower frequency-info
make permanent configuration
sudo nano /etc/default/cpupower
restart you computer
sudo reboot
check changes
cpupower frequency-info
install tool
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
sudo chmod +x ~/turbo-boost.sh
execute disablesudo ~/.oh-my-zsh/turbo-boost.sh disable
execute enable
sudo ~/.oh-my-zsh/turbo-boost.sh enable
check changes
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
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)
ssh-keygen -t rsa
ssh sheena@192.168.0.11 mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh sheena@192.168.0.11 'cat >> .ssh/authorized_keys'
ssh sheena@192.168.0.11 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
ssh sheena@192.168.0.11
Package.json configuration
"debug": "node $NODE_DEBUG_OPTION node_modules/.bin/webpack-dev-server --config ./path/to/webpack.config.js"
webpack configuration
devtool: 'eval-source-map'
Editor configuration
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
adb devices
Run adb tcpip 5555
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.
adb connect <IP address of your device>:5555
adb devices











































