Skip to content

Instantly share code, notes, and snippets.

View aliselcuk's full-sized avatar
💭
Reshaping

Ali Selcuk aliselcuk

💭
Reshaping
  • superV
  • Istanbul
View GitHub Profile
@aliselcuk
aliselcuk / codestyle.json
Created July 25, 2019 11:43
PHPStorm Style
{
"schemeName": "Dali Style",
"version": "1.0",
"codeStyle": {
"all": {
"formatter_off_tag": "@formatter:off",
"formatter_on_tag": "@formatter:on",
"formatter_tags_accept_regexp": false,
"formatter_tags_enabled": false,
"max_line_length": 120,
@aliselcuk
aliselcuk / workbench.sh
Created July 12, 2019 03:13
Script to link composer repository
#!/bin/bash
if [ ! -d addons ]; then
exit 0;
fi
WORKBENCH=$(grep SV_WORKBENCH .env | cut -d '=' -f 2-)
if [[ ! "$WORKBENCH" ]]; then
echo "Workbench not enabled"
@aliselcuk
aliselcuk / nginx.conf
Last active March 5, 2019 20:47 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@aliselcuk
aliselcuk / install_jenkins.sh
Last active March 26, 2020 01:51
Install & Configure Jenkins on Debian/Ubuntu
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install jenkins
su - jenkins
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub # copy
mkdir addons/vendor/drops/acp
cd addons/vendor/drops/acp
vue create .
yarn add superv-js
yarn serve
php artisan vendor:publish --tag=superv.spa
cd resources/superv/spa
yarn install
~ modify files ~
yarn build
@aliselcuk
aliselcuk / SuperV.php
Created January 18, 2019 17:53
What is SuperV?
<?php
namespace Laravel\Platforms\SuperV;
use RuntimeException;
class SuperV
{
/**
* Open source and will stay so
find the app's executable name
sudo opensnoop -n appName
@aliselcuk
aliselcuk / gist:e21896ccc2d20729d19092ab6a03b98e
Created December 7, 2018 13:22
Working webpack-dev-server proxy config
devServer: {
host: 'acp.superv.dev.io',
port: 8080,
proxy: {
'/api': {
target: 'http://api.superv.dev.io',
pathRewrite: { '^/api': 'acp' },
changeOrigin: true,
},
},
@aliselcuk
aliselcuk / gist:03c1c8b43e1699e29848c6273d2814f4
Last active December 7, 2018 02:53
PhpStorm RegEx Search & Replace
# Search:
import (\w+) from '@shared.*'
# Replace
import \{ $1 \} from 'library-js'