Skip to content

Instantly share code, notes, and snippets.

Avatar

aluc b6pzeusbc54tvhw5jgpyw8pwz2x6gs

View GitHub Profile
View basicTemplate.js
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=window.react},function(e,t,n){e.ex
View keybase.md

Keybase proof

I hereby claim:

  • I am b6pzeusbc54tvhw5jgpyw8pwz2x6gs on github.
  • I am b6pzeusbc54tvhw5 (https://keybase.io/b6pzeusbc54tvhw5) on keybase.
  • I have a public key ASBjuG43VXp7Z7IpTG35LdYkoc8sf5gAAuPXZ7HU2Re3ywo

To claim this, I am signing this object:

View settings.json
{
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.autoIndent": false,
"python.linting.pylintPath": "${workspaceFolder}/packages-for-code/bin/pylint",
"python.envFile": "${workspaceFolder}/.envrc.code",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / hyperkey-and-alone-modified.json
Last active Mar 1, 2019
~/.config/karabiner/assets/complex_modifications/
View hyperkey-and-alone-modified.json
{
"title": "alone modified key (@aluc)",
"rules": [
{
"description": "Change left control to esc if alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
View logger.js
const prioritized = {
error: 0,
warn: 1,
info: 2,
verbose: 3,
debug: 4,
silly: 5
}
let level = 'debug'
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / step.yml
Last active Aug 15, 2020
GitHub Actions debugging with ssh
View step.yml
# https://dev.to/retyui/how-debugging-github-actions-with-ssh-273n?a=github_community
- name: Start SSH via Ngrok
if: ${{ failure() }}
run: curl -sL https://gist.githubusercontent.com/retyui/7115bb6acf151351a143ec8f96a7c561/raw/7099b9db76729dc5761da72aa8525f632d8875c9/debug-github-actions.sh | bash
env:
# After sign up on the https://ngrok.com/
# You can find this token here: https://dashboard.ngrok.com/get-started/setup
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / gist:cf7d9bcb3b5cbf4d61bb6de0e20dd39c
Created Dec 30, 2020
리눅스 유저 생성 및 개발 환경 프로비저닝
View gist:cf7d9bcb3b5cbf4d61bb6de0e20dd39c
$ sudo adduser newuesrname
# newuesrname으로 접속해서,
$ ssh-keygen
# ansible-playbook을 위해 admin키를 임시로 등록해둠
$ echo "<admin id_rsa.pub>" >> ~/.ssh/authorized_keys
# ansible-playbook을 위해 sudo 권한 임시로 부여
$ sudo usermod -aG sudo newuesrname
View gist:eb8ec513e5ec57e030a3a239ac4be80e
npx artillery quick --duration 300 --rate 2 -n 2 <url> --output output.json
npx artillery report output.json
@b6pzeusbc54tvhw5jgpyw8pwz2x6gs
b6pzeusbc54tvhw5jgpyw8pwz2x6gs / gist:970bf5b96006303cd4795dab17bfaf10
Last active Mar 19, 2021
VSCode remote ssh 접속 안되는 문제 해결 방법
View gist:970bf5b96006303cd4795dab17bfaf10
#!/bin/bash
# Script to update VScode
# from https://github.com/Sheridan-Tech/Update_VScode
# ssh로 붙는 target server에서 아래 실행:
#grab the current commit id
COMMIT_ID=`ls -At ~/.vscode-server/bin | head -n 1`
cd ~/.vscode-server/bin/$COMMIT_ID