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
#!/bin/sh | |
stty cols 200 rows 50 |
Place {% raw %}
and {% endraw %}
pair.
{% raw $}
```
{{% site.data...blah %}}
```
{% endraw %}
http://example.com
http://example.com
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
#!/bin/zsh | |
# Commit N days before | |
# At least one arg needed. | |
if [ $# -lt 1 ]; then | |
echo "Usage: ./commit-n-days-before [N]" | |
exit 1 | |
fi |
백업
$ mysqldump -u [사용자 계정] -p [패스워드] --no-tablespaces --column-statistics=0 [원본 데이터베이스명] > [생성할 백업 DB명].sql
$ mysqldump -u potados -p 1234 --no-tablespaces --column-statistics=0 cafeteria > backedup.sql
mysqldump 8부터
--no-tablespaces --column-statistics=0
옵션을 주어야 함.
복원
$ mysql -u [사용자 계정] -p [패스워드] [복원할 DB] < [백업된 DB].sql
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 npm install -g --unsafe-perm [module] |
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
// See https://www.cise.ufl.edu/~manuel/obfuscate/pi.c | |
#include <stdio.h> | |
// Increase area for 1. | |
// If heading unary operator '-' does not exist, increase dia for 1. | |
#define _ (area++) < 0 ? 0 : dia++; | |
long area = 0; | |
long dia = 0; |
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
/** | |
* 스트링을 delimiter로 자릅니다. | |
* strtok와 비슷하게 움직입니다. | |
* | |
* @param source 원본 스트링. 원본에 수정을 가하니 주의! | |
* @param delimiter 자를 기준이 되는 문자. | |
* @return 잘린 조각 스트링의 시작 위치. | |
*/ | |
char *splitNext(char **source, char delimiter) { | |
if (!**source) { |
OlderNewer