$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.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
DESTDIR = . | |
PROGRAM = app | |
SRCS = $(shell find $(PWD) -name "*.c" -type f) | |
OBJS = $(SRCS:%.c=%.o) | |
CC = clang | |
INCDIRS = | |
CFLAGS = -g -O0 -Wall -Wextra -std=c17 | |
LDFLAGS = | |
LDLIBS = |
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
namespace DifferenceParseAndConvert | |
{ | |
using System; | |
class Program | |
{ | |
static void Main() | |
{ | |
// | |
// ParseメソッドとConvert.ToXXXメソッドの僅かな違い |
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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"unsafe" | |
) |
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アドレスまたはホスト名 | |
$target = "xxx.xxx.xxx.xxx" | |
# スキャンするポート範囲 | |
$startPort = 20 | |
$endPort = 25 | |
# 指定したポート範囲でスキャンを実行 | |
for ($port = $startPort; $port -le $endPort; $port++) { | |
$tcpClient = New-Object System.Net.Sockets.TcpClient |
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
class Program | |
{ | |
static void Main() | |
{ | |
// | |
// Mainメソッドはasync付けられないので | |
// 一階層挟んでタスクを待ち合わせするようにする | |
// | |
ExecMainProc().Wait(); | |
} |
$ brew install gitpod-io/tap/gitpod
==> Tapping gitpod-io/tap
NewerOlder