Skip to content

Instantly share code, notes, and snippets.

View yalin's full-sized avatar
✴️

Yalin Aydin yalin

✴️
  • Kingston, ON, Canada
  • X @yalin
View GitHub Profile
@yalin
yalin / XamppCI4.md
Created March 8, 2021 06:25
Xampp and CodeIgniter 4
  • Install xampp
  • Download CodeIgniter (lets say ~/folder/)
  • edit /opt/lampp/etc/httpd.conf
  • replace line
    • DocumentRoot "/opt/lampp/htdocs" with
    • DocumentRoot "your_path"
    • And change line
    • Directory "/opt/lampp/htdocs" with
    • Directory "your_path"
  • Restart apache
@yalin
yalin / digitalocean.md
Created February 27, 2021 06:09
ssh after digital ocean droplet
  1. Create your local ssh key using ssh-keygen
  2. Copy ~/.ssh/id_rsa.pub to digital ocean my profile > security
  3. Create droplet with added ssh key
  4. Droplet dashboard > Access > Reset root password
  5. Email will come with root password
  6. Droplet dashboard; on right top there is "Console" to server
  7. Enter the root password you copied from e-mail
  8. Create a new password
  9. Local terminal; ssh-copy-id -i id_rsa.pub YOUR_SERVER_IP creates known hosts file under .ssh/
  10. If ssh key correct you can continue, if not;
@yalin
yalin / synaptics
Created February 23, 2021 05:00
Synaptics Touchpad default config
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
@yalin
yalin / index.html
Created February 3, 2021 10:58
simple-bootstrap-starterpage
<!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/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
</head>