This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// infra code | |
const isEmptyOrNil = (value) => isEmpty(value) || isNil(value) | |
const nullChange = (defaultValue) => (value) => isEmptyOrNil(value)? defaultValue: value | |
// single null | |
const _somef = (value) => value | |
const somefWithDefault = (defaultValue) => pipe(nullChange(defaultValue), _somef) | |
const somef = somefWithDefault('myValue') | |
somef(null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
일부 패키지 설치시 오류가 발생할 수 있다. 패키지 내에 c/c++ 라이브러리를 설치하는 경우 권한에 따른 에러가 발생하게 된다. | |
sentry 역시 그렇다. 로컬에선 별 문제 없다가 aws에서 문제가 발생한다. | |
설치 과정에서 추적하다보면 node scripts/install.js 라인에서 발생하고, 해당 디버그 메세지는 아래와 같다. | |
================================================================================================================ | |
2916 info lifecycle @sentry/[email protected]~install: @sentry/[email protected] | |
2917 verbose lifecycle @sentry/[email protected]~install: unsafe-perm in lifecycle false | |
2918 verbose lifecycle @sentry/[email protected]~install: PATH: /opt/elasticbeanstalk/node-install/node-v8.14.0-linux-x64/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/tmp/deployment/application/node_modules/@sentry/cli/node_modules/.bin:/tmp/deployment/application/node_modules/.bin:/opt/elasticbeanstalk/node-install/node-v8.14.0-linux-x64/bin:/opt/elasticbeanstalk/lib/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin | |
2919 verbose lifecycle @sentry/[email protected]~install: CWD: /tmp/deployment/application/node_modules/@sentry/cli | |
2920 silly l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm version patch -m "Version %s - add sweet badges" | |
git push && git push --tags (or git push origin master --tags) | |
npm publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://codeburst.io/https-chidume-nnamdi-com-npm-module-in-typescript-12b3b22f0724 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/29388626/how-to-speed-up-webstorm | |
Here is my recipe how to speed up your lovely WebStorm: | |
Go to Preferences and do next: | |
Appearance & Behaviour > System Settings > Updates: disable auto update | |
Appearance & Behaviour > System Settings > Usage Statistics: Uncheck Allow sending data usage statistics to JetBrains | |
Editor > Live Templates: disable all, leave only what you are really use | |
Editor > Emmet: disable all emmets | |
Editor > Intentions: I leave only: CSS, Declaration, JavaScript and Language Injection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.JPG | |
do | |
mv -v "$file" "${file%.JPG}.jpg" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (전체)보안 업그레이드 | |
sudo apt-get full-upgrade | |
# 고정 ip 할당 | |
sudo vim /etc/network/interfaces | |
================================================== | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package kr.co.rebel9; | |
import com.querydsl.jpa.impl.JPAQueryFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vim /etc/fstab | |
//192.168.0.105/data /mnt/data cifs user=admin,pass=rebel9,rw 0 |
NewerOlder