Skip to content

Instantly share code, notes, and snippets.

KwangSeob Jeong lesstif

Block or report user

Report or block lesstif

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lesstif
lesstif / HelloWorld.php
Last active Jun 4, 2020
phpstan test class
View HelloWorld.php
<?php declare(strict_types = 1);
/**
* phpstan sample
*
* Class HelloWorld
* @package App
*/
class HelloWorld
{
@lesstif
lesstif / my.ini
Last active May 18, 2020
MySQL ini config file for laragon
View my.ini
# Other default tuning values
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
@lesstif
lesstif / php.ini
Created May 9, 2020
php ini for windows devel environment
View php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@lesstif
lesstif / GetAllJiraAttachmentTest.php
Created Apr 29, 2020
get all jira issue's attachments
View GetAllJiraAttachmentTest.php
<?php
use JiraRestApi\Attachment\AttachmentService;
use JiraRestApi\JiraException;
class GetAllJiraAttachmentTest extends PHPUnit_Framework_TestCase
{
public function testGetIssue()
{
$key = 'TEST-484';
@lesstif
lesstif / sysctl.conf
Created Apr 29, 2020
네트워크 서버를 위한 linux kernel parameter 설정
View sysctl.conf
# sysctl settings are defined through files in
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
#
# Vendors settings live in /usr/lib/sysctl.d/.
# To override a whole file, create a new file with the same in
# /etc/sysctl.d/ and put new settings there. To override
# only specific settings, add a file with a lexically later
# name in /etc/sysctl.d/ and put new settings there.
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
@lesstif
lesstif / EventServiceProvider.php
Last active Apr 23, 2020
Laravel Event Listener 을 이용한 eloquent query logging
View EventServiceProvider.php
<?php
namespace App\Providers;
use App\Listeners\LoggingEloquentQueryListener;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
@lesstif
lesstif / gist:9e895302c499e8d41e35cdbb08201d26
Created Mar 5, 2020 — forked from abhishekkhaware/gist:7152721
Create An Alias For Laravel and Codecept in Windows PowerShell.
View gist:9e895302c499e8d41e35cdbb08201d26
# Laravel Artisan Commands Shortcut
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5}
Set-Alias a art
#### Use as by default Alias #####
# ge:r => generate:resource
# ge:c => generate:controller
@lesstif
lesstif / TaskSchedulerRan.php
Created Feb 29, 2020
PHP laravel slack notification example
View TaskSchedulerRan.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Messages\SlackMessage;
use Illuminate\Notifications\Notification;
@lesstif
lesstif / gist-clone.sh
Created Dec 24, 2019
my gist downlaod
View gist-clone.sh
#!/bin/bash -x
#!/bin/bash -x
GH=${HOME}/gist
if [ ! -d ${GH} ];then
mkdir ${GH}
fi;
@lesstif
lesstif / settings.json
Last active Jun 1, 2020
windows terminal settings json file for wsl2, wsl(Windows Subsystem For Linux)
View settings.json
// This file was initially generated by Windows Terminal 0.11.1191.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
You can’t perform that action at this time.