hi Mulder I love you
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
hi Mulder | |
this is MD file | |
-- 1 | |
- 2 | |
-- 3 | |
--- 4 |
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
# group other enable READ and EXECUTE | |
chmod -R go=+rx * |
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
mulder@~/Project/obs$ diskutil list | |
/dev/disk0 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *500.3 GB disk0 | |
1: EFI EFI 209.7 MB disk0s1 | |
2: Apple_CoreStorage Macintosh HD 499.4 GB disk0s2 | |
3: Apple_Boot Recovery HD 650.0 MB disk0s3 | |
/dev/disk1 (internal, virtual): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: Apple_HFS Macintosh HD +499.1 GB disk1 |
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
-- IP Block / UNBlock by iptables in centos | |
root@localhost log]# iptables -I INPUT -s 116.31.116.6 -j DROP | |
[root@localhost log]# | |
[root@localhost log]# !tail | |
tail -f secure | |
Aug 1 20:34:55 localhost sshd[16720]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root" | |
Aug 1 20:34:57 localhost sshd[16720]: Failed password for root from 116.31.116.6 port 61677 ssh2 | |
Aug 1 20:34:58 localhost unix_chkpwd[16723]: password check failed for user (root) | |
Aug 1 20:34:58 localhost sshd[16720]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "root" |
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
docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql | |
docker run --name some-wordpress --link some-mysql:mysql -p 80 -d wordpress | |
mulder@~/Project/dkr$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
2b537a3508e1 wordpress "/entrypoint.sh apach" 3 minutes ago Up 3 minutes 0.0.0.0:32768->80/tcp some-wordpress | |
b081d8548daf mysql "docker-entrypoint.sh" 6 minutes ago Up 6 minutes 3306/tcp some-mysql | |
480a5a6faeef centos "/bin/bash" 3 weeks ago Exited (0) 3 weeks ago naughty_liskov | |
cd301a1e575e nginx "nginx -g 'daemon off" 3 weeks ago Exited (0) 3 weeks ago webserver | |
mulder@~/Project/dkr$ |
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
bitnami@mango-mysqld:~$ lsblk | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
xvda 202:0 0 10G 0 disk | |
└─xvda1 202:1 0 10G 0 part / | |
xvdf 202:80 0 100G 0 disk <--- 새로추가한 디스크 | |
bitnami@mango-mysqld:~$ sudo file -s /dev/xvdf | |
/dev/xvdf: data | |
bitnami@mango-mysqld:~$ sudo mkfs -t ext4 /dev/xvdf <--- 새로추가한 디스크포맷 |
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
mulder@~/Movies/youtube$ sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl | |
Password: | |
mulder@~/Movies/youtube$ sudo chmod a+rx /usr/local/bin/youtube-dl | |
mulder@~/Movies/youtube$ vi dn | |
mulder@~/Movies/youtube$ sh dn | |
[download] Destination: lacampanella.mp4 | |
[download] 100% of 95.87MiB in 00:08 |
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 archive --format=tar HEAD|gzip > ../rep-name.tar.gz |
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
<!-- | |
ref : http://stephenwalther.com/archive/2010/11/30/an-introduction-to-jquery-templates | |
--> | |
<body> | |
<div id="tabsView"></div> | |
<script id="tabsContent" type="text/x-jquery-tmpl"> | |
{{wrap "#tabsWrap"}} | |
<h3>Tab 1</h3> | |
<div> |
OlderNewer