These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
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/bash | |
| set -eu | |
| declare -a all_deps=( ) | |
| for pkg_name in "$@" | |
| do | |
| declare -a deps=$(apt-cache depends -i --recurse $pkg_name | awk -F 'Depends: ' 'NF>1{ sub(/ .*/,"",$NF); print $NF }' | sort | uniq) | |
| all_deps+=$deps | |
| done |
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
| // make a request | |
| const options = { | |
| port: 1337, | |
| host: 'localhost', | |
| headers: { | |
| 'Connection': 'Upgrade', | |
| 'Upgrade': 'websocket' | |
| } | |
| }; | |
| const protocol = 'http' |
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.
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
| onServerStartup () { | |
| const { serverId, ip } = getServerInfo() // serverId does not change across restarts | |
| this.serverId = serverId | |
| // We don't have any routers or producers (yet). Clear any value that exists in the DB related to our serverId | |
| clearSharedDB(serverId, 'routers') | |
| clearSharedDB(serverId, 'producers') | |
| // Update the DB with our serverId and ip so that others will know how to reach us | |
| registerServerInDB(serverId, ip) | |
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
| ffmpeg -re \ | |
| -f lavfi -i "smptebars=rate=30:size=640x360" \ | |
| -f lavfi -i "sine=frequency=1000" \ | |
| -vf drawtext="text='%{pts\:hms}':rate=30:x=(w-tw)/2:y=(h-lh)/2:fontsize=48:fontcolor=white:box=1:boxcolor=black" \ | |
| -f flv \ | |
| -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -preset ultrafast -tune zerolatency -crf 28 \ | |
| -acodec aac \ | |
| rtmp://streaming-server/live/key |
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
| // link to -lX11 -lXext | |
| #include <cstdio> | |
| #include <X11/Xlib.h> | |
| #include <X11/extensions/sync.h> | |
| #include <inttypes.h> | |
| #include <sys/time.h> | |
| #include <unistd.h> | |
| static void testCounterFrequency (Display *display, XSyncSystemCounter *sc) { |
Command to add:
yarn tsc --declaration --emitDeclarationOnly --allowJs --lib es2015 lib/*.js
or via npx
npx -p typescript@next tsc --declaration --emitDeclarationOnly --allowJs --lib es2015 lib/*.js
NewerOlder