Skip to content

Instantly share code, notes, and snippets.

View Kos-M's full-sized avatar

Kostas Kos-M

View GitHub Profile

Steps to get your authorization token , to be able make requests on Rest Api in php

*Note this requires you have installed JWT Authentication for WP-API

<?php

$curl = curl_init();

curl_setopt_array($curl, array(

Upgrade system

apt update && sudo apt upgrade

Install Docker

curl -sSL https://get.docker.com | sh

Install Docker-Compose

@Kos-M
Kos-M / example.js
Last active July 18, 2021 18:23
Js Simple Convert object of Objects to Array of Objects
const initial = {
BTC: {
available: '0.00000000',
onOrder: '0.00000000',
},
LTC: {
available: '0.00000000',
onOrder: '0.00000000',
},
};
@Kos-M
Kos-M / setup.md
Last active September 17, 2023 13:51
Setup SSH keys for Github/Gogs

Instuctions to setup passwordless git operations.

  • Generate SSH key pairs (email must be the same you see with : git config user.email)

Select save default to ~/.ssh/id_rsa When ask for pass hit enter , else you must type that pass everytime you use the keys.

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"