Skip to content

Instantly share code, notes, and snippets.

View luiseok's full-sized avatar

luiseok luiseok

  • localhost
View GitHub Profile
@luiseok
luiseok / jail.local
Last active June 28, 2025 07:54
Fail2ban MongoDB filter.d configuration file
#
# File Path : /etc/fail2ban/jail.local
#
# Please modify the port and logpath that you configured.
#
[mongo-auth]
enabled = true
filter = mongo-auth
@luiseok
luiseok / jail.local
Created August 15, 2017 00:56
jail.local separated file
#
# File Path : fail2ban/jail.local
#
# Please modify the port and logpath that you configured.
#
[mongo-auth]
enabled = true
filter = mongo-auth
@luiseok
luiseok / mongo-auth.conf
Created August 15, 2017 01:01
mongo-auth.conf
#
# File Path : fail2ban/filter.d/mongo-auth.conf
#
# Fail2Ban filter for unsuccesfull MongoDB authentication attempts
# Tested on fail2ban-client v0.9.3
#
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
@luiseok
luiseok / install.sh
Created September 9, 2017 18:13 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@luiseok
luiseok / example.vue
Created July 3, 2018 14:13
Vue.js bind URI query to computed
<template>
<div>this is an exmaple of binding url query to vue.js computed property</div>
</template>
<script>
name: "example",
computed : {
page: {
get() {
//set default value here
@luiseok
luiseok / index.js
Last active July 7, 2018 12:44
blog posting
export const actions = {
async nuxtServerInit({commit}, {req}) {
let cookie = req.headers.cookie.split(';').find(c => c.trim().startsWith('token='));
if (cookie == "" ||
cookie == null ||
cookie == undefined ||
(cookie != null && typeof cookie == "object" && !Object.keys(cookie).length)) return
else {
//jwt 토큰이 있는 경우
@luiseok
luiseok / component.vue
Last active October 31, 2019 11:58
vue js use cdn
<template>
<div></div>
</template>
<script>
export default {
name: "Component",
data: () => ({
player: null, // 스크립트 로드 이후 객체를 저장 할 변수
script: null, // 스크립트에 대한 정보를 가지고 있을 변수
@luiseok
luiseok / docker-compose.yml
Created March 1, 2020 09:56
ST SmartApps Connectors for Raspberry pi
version: "3"
services:
connector:
image: fison67/mi-connector-arm:latest
restart: always
ports:
- "30000:30000"
volumes:
- ./docker/mi-connector:/config
@luiseok
luiseok / gist:eb41757ba580f9412783352cb2003700
Created August 11, 2021 14:10
IntelliJ Vue Single File Component File Template
#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase())
<template>
<div class="${COMPONENT_NAME_KEBAB}">
#[[$END$]]#
</div>
</template>
<script>
@luiseok
luiseok / keybase.md
Created December 20, 2021 04:36
keybase.md

Keybase proof

I hereby claim:

  • I am luiseok on github.
  • I am luiseok (https://keybase.io/luiseok) on keybase.
  • I have a public key whose fingerprint is 5023 CAEE F5A7 8070 F791 6337 6437 33E4 4AF1 EBE2

To claim this, I am signing this object: