This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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