π€ͺ
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