This can be useful when you're writing stuff, just do the following:
:set spellcheck=[lang]
This can be useful when you're writing stuff, just do the following:
:set spellcheck=[lang]
Want to check the specs of your system? Just type this:
lshw
Too long? Then type this for a shorter version:
lshw -short
One of the most infamous issues that new users of VIM faces when using it for the first time. Press :q
to quit VIM
If you've worked on a file and want to save and quit? Just type :wq!
.
I hope that solved your quitting issue with VIM.
Want to know the current version of your Ubuntu distro? Type this:
lsb_release -r
Want to save your work? Type :w
Type :wq!
to save your file and quit VIM at the same time.
Got a .pem key but don't know how to SSH to your server, just do this:
ssh -i name_of_key user@domain -p 22
Recently, I started working from home and as a programmer, it's pretty common to access the company server for development purposes.
Back in the office, I used to access it using PuTTY but now that I'm using a linux machine, I thought of accessing it via Terminal but there's a catch, I can't use .ppk key to access it.
So, I did a little research and figured that I can easily convert it using puttygen
Open up your terminal and type:
sudo apt install putty-tools
Now, convert your private key to PEM format:
puttygen yourprivate.ppk -O private-openssh -o your_new_key.pem
That's it and you're good to go!
I mean, come on, you need to have a reCaptcha in your forms, no matter what.
Here are the steps:
composer require anhskohbo/no-captcha
Open your config/app.php
file and add this to your providers array:
<?php
Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,
?>
And this to your aliases array:
<?php
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::class,
?>
php artisan vendor:publish --provider="Anhskohbo\NoCaptcha\NoCaptchaServiceProvider"
Open your .env
file and add this:
NOCAPTCHA_SITEKEY=yoursitekey
NOCAPTCHA_SECRET=yoursecret
Now, you can use it in your validator using like this:
<?php
$validate = Validator::make(Input::all(),[
'g-recaptcha-response' => 'required|captcha'
]);
?>
ESC
keygg
and it will take you to first line of the file.dG
and it will clear all the lines from start to the end of the file.