Skip to content

Instantly share code, notes, and snippets.

View Tibalt's full-sized avatar

Tibalt Zhao Tibalt

View GitHub Profile
@Tibalt
Tibalt / curl.md
Created November 18, 2022 03:24 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

Const WshRunning = 0
Const WshFinished = 1
Const WshFailed = 2
dim WSLIP
WSLIP = ""
dim ret
ret = 1
Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Set objLog = objFSO.CreateTextFile("c:\rebootlog.txt")
@Tibalt
Tibalt / udpmuticast.c
Created June 1, 2021 11:30
udp multicast example
/*
*
* multicast.c
*
* The following program sends or receives multicast packets. If invoked
* with one argument, it sends a packet containing the current time to an
* arbitrarily chosen multicast group and UDP port. If invoked with no
* arguments, it receives and prints these packets. Start it as a sender on
* just one host and as a receiver on all the other hosts
*