Skip to content

Instantly share code, notes, and snippets.

View marlonfan's full-sized avatar
👋
: )

marlon marlonfan

👋
: )
View GitHub Profile
@marlonfan
marlonfan / company.list
Last active July 13, 2024 07:05
youdao.txt
DOMAIN-SUFFIX,icloud.com
DOMAIN-SUFFIX,marketplace.visualstudio.com
DOMAIN-SUFFIX,www.bing.com
DOMAIN-SUFFIX,note.youdao.com
DOMAIN-KEYWORD,wps
version: "3.4"
services:
reverse-proxy:
image: traefik:v2.5
restart: always
command:
- "--providers.docker"
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
- "--providers.docker.exposedbydefault=false"
@marlonfan
marlonfan / php_cs.dist
Last active April 11, 2019 11:34
php code style
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@PSR2' => true,
'@PhpCsFixer' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
package main
import (
"fmt"
"net/http"
"sync"
"time"
)
var count = 0
@marlonfan
marlonfan / limitConcurrentGoroutines.go
Created November 25, 2017 18:08 — forked from AntoineAugusti/limitConcurrentGoroutines.go
Limit the maximum number of goroutines running at the same time
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {
@marlonfan
marlonfan / launch.json
Created October 20, 2017 05:47
vscode debug's config
{
"version": "0.2.0",
"configurations": [{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9009,
"localSourceRoot": "${workspaceRoot}/public",
"serverSourceRoot": "/home/vagrant/Code/forzu-be/public"
},
{
"bootstrapped": true,
"http_proxy": "127.0.0.1:1087",
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Alignment",
@marlonfan
marlonfan / des.go
Last active August 21, 2017 04:48 — forked from cuixin/des.go
des ecb mode in golang
package main
import (
"bytes"
"crypto/cipher"
"crypto/des"
"encoding/base64"
"fmt"
)
@marlonfan
marlonfan / Laravel PHP7 LEMP AWS.md
Created June 14, 2017 14:59 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@marlonfan
marlonfan / Install-php7.md
Created April 1, 2017 16:45 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions