Skip to content

Instantly share code, notes, and snippets.

View shuoros's full-sized avatar
☁️
above the clouds

Soroush Shemshadi shuoros

☁️
above the clouds
View GitHub Profile
@shuoros
shuoros / UBUNTU_KICKSTART.md
Last active February 17, 2024 08:49
A comprehensive guide to setting up and configuring an ubuntu server

Hello Ubuntu

As you buy a new ubuntu serve from any provider they gave you an IP and an intial password. To login to your server run this command on your local machine:

ssh root@<IP>

Then your system will ask you if you are sure to connect to this server, which you must answer yes. After establishing the first connection, the server will ask you to enter a new password for the server. You can generate a random password from here

Setup Security

User

@shuoros
shuoros / JS_URL_PARAMS_INTERACTION.md
Last active February 13, 2024 05:33
Get, Add and Delete URL Parameters in Javascript

Some useful functions to interact with URL parameters without refreshing the whole page.

Get All Parameters

function getParams() {
    var vars = {};
    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
    function(m,key,value) {
      vars[key] = value;
 });