- Create your local ssh key using
ssh-keygen
- Copy
~/.ssh/id_rsa.pub
to digital oceanmy profile > security
- Create droplet with added ssh key
- Droplet dashboard > Access > Reset root password
- Email will come with root password
- Droplet dashboard; on right top there is "Console" to server
- Enter the root password you copied from e-mail
- Create a new password
- Local terminal;
ssh-copy-id -i id_rsa.pub YOUR_SERVER_IP
createsknown hosts
file under .ssh/ - If ssh key correct you can continue, if not;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> | |
<title>Hello World</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Device 'SynPS/2 Synaptics TouchPad': | |
Device Enabled (190): 1 | |
Coordinate Transformation Matrix (192): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 | |
Device Accel Profile (319): 1 | |
Device Accel Constant Deceleration (320): 2.500000 | |
Device Accel Adaptive Deceleration (321): 1.000000 | |
Device Accel Velocity Scaling (322): 6.158088 | |
Synaptics Edges (323): 1574, 5370, 1407, 4443 | |
Synaptics Finger (324): 25, 30, 0 | |
Synaptics Tap Time (325): 180 |
- Install xampp
- Download CodeIgniter (lets say ~/folder/)
- edit /opt/lampp/etc/httpd.conf
- replace line
DocumentRoot "/opt/lampp/htdocs"
withDocumentRoot "your_path"
- And change line
Directory "/opt/lampp/htdocs"
withDirectory "your_path"
- Restart apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# argprase library that will help us to deal with arguments | |
import argparse | |
import sys | |
myParser = argparse.ArgumentParser(description='Definition of the python file') | |
myParser.add_argument('mandatory', | |
type=str, | |
help='Mandatory argument') | |
myParser.add_argument('--optional', '-o', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------------------------- | |
# Example Environment Configuration file | |
# | |
# This file can be used as a starting point for your own | |
# custom .env files, and contains most of the possible settings | |
# available in a default install. | |
# | |
# By default, all of the settings are commented out. If you want | |
# to override the setting, you must un-comment it by removing the '#' | |
# at the beginning of the line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nvidia-settings: X configuration file generated by nvidia-settings | |
# nvidia-settings: version 470.57.01 | |
Section "ServerLayout" | |
Identifier "Layout0" | |
Screen 0 "Screen0" 0 0 | |
InputDevice "Keyboard0" "CoreKeyboard" | |
InputDevice "Mouse0" "CorePointer" | |
Option "Xinerama" "0" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit; | |
* postgresql.conf | |
* pg_hba.conf | |
cd /etc/postgresql/12/main (Linux) | |
### postgresql.conf | |
set listen_addresses = '*' | |
### pg_hba.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Fira Code', 'ui-monospace', 'SFMono-Regular' , 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace', 'Monospace','Courier New' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"workbench.colorCustomizations": { | |
"editor.background": "#4d4643", | |
"editor.foreground": "#d4d4d4", | |
"activityBar.background": "#272321", | |
"activityBar.foreground": "#d4d4d4", | |
"activityBarBadge.background": "#009688", | |
"sideBarTitle.foreground": "#bbbbbb", | |
"sideBar.background": "#443d3a", | |
"sideBarSectionHeader.foreground": "#faa41a", | |
"sideBarSectionHeader.background": "#272321", |
OlderNewer