Skip to content

Instantly share code, notes, and snippets.

View ozgrozer's full-sized avatar
💻
Busy

Ozgur Ozer ozgrozer

💻
Busy
View GitHub Profile
@ozgrozer
ozgrozer / git-for-deployment.md
Last active April 8, 2018 17:07
Git for deployment

Server

Initialize a bare repository outside of the live server (hub repo).

mkdir -p /var/git/myProject.git
cd /var/git/myProject.git
git init --bare
@ozgrozer
ozgrozer / xampp-automatically-start-on-macos-startup.md
Last active March 15, 2025 06:09
XAMPP automatically start Apache and MySQL on MacOS startup

XAMPP automatically start Apache and MySQL on MacOS startup

  1. Change directory.
cd /Library/LaunchDaemons
  1. Create Apache file for startup.
@ozgrozer
ozgrozer / deploy.js
Last active September 6, 2024 15:26
Next.js: Deploy your app from local to server
const { spawn } = require('child_process')
// eg: /Users/your-user-name/.ssh/id_rsa
const SSH_KEY_PATH = ''
// server user name eg: root
const SSH_USER = ''
// server ip address
const SSH_HOST = ''
// app path on server eg: /var/www/site.com
const SERVER_PATH = ''
@ozgrozer
ozgrozer / settings.json
Created January 29, 2025 19:46
Cursor Settings
{
"workbench.colorTheme": "Atom One Dark",
"git.enabled": true,
"editor.tabSize": 2,
"editor.fontSize": 13,
"editor.wordWrap": "on",
"editor.lineHeight": 2.1,
"editor.cursorWidth": 3,
"editor.linkedEditing": true,
"editor.tabCompletion": "on",