Skip to content

Instantly share code, notes, and snippets.

@fureweb-com
fureweb-com / flexbox.html
Last active January 11, 2023 08:23
flex display example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flex box example</title>
<style>
.parents {
display: flex;
@fureweb-com
fureweb-com / get-ips-and-ports-that-listening.sh
Created December 19, 2020 16:25
netstat가 설치되어있지 않은 환경에서 현재 listening중인 ip 및 포트 확인하기
grep -v "rem_address" /proc/net/tcp | awk 'function hextonum(str, ret, n, i, k, c) {if (str ~ /^0[xX][0-9a-FA-F]+$/) {str = substr(str, 3);n = length(str);ret = 0;for (i = 1; i <= n; i++) {c = substr(str, i, 1);c = tolower(c);k = index("123456789abcdef", c);ret = ret * 16 + k}} else ret = "NOT-A-NUMBER";return ret} {y=hextonum("0x"substr($2,index($2,":")-2,2));x=hextonum("0x"substr($3,index($3,":")-2,2));for (i=5; i>0; i-=2) {x = x"."hextonum("0x"substr($3,i,2));y = y"."hextonum("0x"substr($2,i,2));} print y":"hextonum("0x"substr($2,index($2,":")+1,4))" "x":"hextonum("0x"substr($3,index($3,":")+1,4));}'
@fureweb-com
fureweb-com / scripts.sh
Created December 11, 2020 07:05
기록용 스크립트 모음
# DNS 캐시 제거 (ubuntu 16.04+)
sudo systemd-resolve --flush-caches
@fureweb-com
fureweb-com / app.html
Last active March 4, 2024 05:26
CodeSpitz 74 - 6강 코드
<html>
<head></head>
<body>
<section id="stage">
</section>
<nav id="controller">
<button class="up"></button>
<button class="down"></button>