Skip to content

Instantly share code, notes, and snippets.

View lesstif's full-sized avatar

KwangSeob Jeong lesstif

View GitHub Profile
@lesstif
lesstif / GetAllJiraAttachmentTest.php
Created April 29, 2020 08:52
get all jira issue's attachments
<?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 April 29, 2020 01:39
네트워크 서버를 위한 linux kernel parameter 설정
# 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 August 5, 2021 04:27
Laravel Event Listener 을 이용한 eloquent query logging
<?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 March 5, 2020 00:47 — forked from abhishekkhaware/gist:7152721
Create An Alias For Laravel and Codecept in Windows PowerShell.
# 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 February 29, 2020 02:55
PHP laravel slack notification example
<?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 December 24, 2019 09:33
my gist downlaod
#!/bin/bash -x
#!/bin/bash -x
GH=${HOME}/gist
if [ ! -d ${GH} ];then
mkdir ${GH}
fi;
@lesstif
lesstif / settings.json
Last active September 15, 2023 08:48
windows terminal settings json file for wsl2, wsl(Windows Subsystem For Linux)
// 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",
@lesstif
lesstif / my.cnf
Last active July 21, 2021 23:25
mysql 5.7 configuration for Linux distro
# For advice on how to change settings please see
# See MySQL 5.7 - http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# MySQL 8.0 - https://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html
[mysql]
local_infile=true
[mysqld]
local_infile=true
@lesstif
lesstif / laravel-nova-AttachableController.php
Last active January 2, 2020 05:01
laravel nova 의 attachable 이 relation 때문에 느릴때 사용하는 AttachableController 컨트롤러.
<?php
namespace Laravel\Nova\Http\Controllers;
use Laravel\Scout\Searchable;
use Laravel\Nova\Fields\Field;
use Laravel\Nova\TrashedStatus;
use Illuminate\Routing\Controller;
use Laravel\Nova\Fields\MorphToMany;
use Laravel\Nova\Fields\BelongsToMany;
@lesstif
lesstif / oracle-jdk-released-before-04-16-2019.md
Created December 17, 2019 08:03
oracle jdk released before April 16, 2019.

Why?

From OTN's notice

The Oracle JDK License has changed for releases starting April 16, 2019.

So, Java 8 Update 202 PSU(OTN) under the OBCL without cost.

Down link