-
C CGI
-
Docker Hub: minhocomcomai/helloworld-c
-
Node Express.js
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
| # Credit to https://github.com/nsarrazin/serge - this is heavily copied from the API there and not very well yet but it might work.w | |
| from typing import List, Optional | |
| from uuid import UUID, uuid4 | |
| from pydantic import BaseModel, Field | |
| from datetime import datetime | |
| import subprocess, os | |
| import asyncio |
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
| // Generates the SAPISIDHASH token Google uses in the Authorization header of some API requests | |
| async function getSApiSidHash(SAPISID, origin) { | |
| function sha1(str) { | |
| return window.crypto.subtle.digest("SHA-1", new TextEncoder("utf-8").encode(str)).then(buf => { | |
| return Array.prototype.map.call(new Uint8Array(buf), x=>(('00'+x.toString(16)).slice(-2))).join(''); | |
| }); | |
| } | |
| const TIMESTAMP_MS = Date.now(); | |
| const digest = await sha1(`${TIMESTAMP_MS} ${SAPISID} ${origin}`); |
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
| Guest information: | |
| (vim.vm.GuestInfo) { | |
| toolsStatus = "toolsOk", | |
| toolsVersionStatus = "guestToolsUnmanaged", | |
| toolsVersionStatus2 = "guestToolsUnmanaged", | |
| toolsRunningStatus = "guestToolsRunning", | |
| toolsVersion = "10304", | |
| toolsInstallType = "guestToolsTypeOpenVMTools", | |
| toolsUpdateStatus = (vim.vm.GuestInfo.ToolsUpdateStatus) null, |
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
| /** | |
| * Temporary wrapper for firebase functions until @sentry/serverless support is implemented | |
| * It currently supports wrapping https, pubsub and firestore handlers. | |
| * usage: https.onRequest(wrap((req, res) => {...})) | |
| */ | |
| import type {Event} from '@sentry/types'; | |
| import type {https} from 'firebase-functions'; | |
| import type {onRequest, onCall} from 'firebase-functions/lib/providers/https'; | |
| import type {ScheduleBuilder} from 'firebase-functions/lib/providers/pubsub'; | |
| import type {DocumentBuilder} from 'firebase-functions/lib/providers/firestore'; |
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
| Timers provide a great help in troubleshooting network problems. All values are | |
| reported in milliseconds (ms). These timers should be used in conjunction with | |
| the session termination flags. In TCP mode with "option tcplog" set on the | |
| frontend, 3 control points are reported under the form "Tw/Tc/Tt", and in HTTP | |
| mode, 5 control points are reported under the form "TR/Tw/Tc/Tr/Ta". In | |
| addition, three other measures are provided, "Th", "Ti", and "Tq". | |
| Timings events in HTTP mode: | |
| first request 2nd request |
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
| # For recent versions of Ubuntu: | |
| - https://www.pugetsystems.com/labs/hpc/ubuntu-22-04-server-autoinstall-iso/ | |
| # Docs: | |
| - https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls | |
| - https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference | |
| - https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html | |
| - https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/53 | |
| # Download ISO Installer: |
WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like [Unreal](https:
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
| // ==UserScript== | |
| // @name Bitbucket Highlighter | |
| // @namespace https://github.com/lephuongbg | |
| // @version 0.11 | |
| // @description Stop-gap solution for highlighting bitbucket pull request | |
| // @author You | |
| // @match https://bitbucket.org/* | |
| // @grant GM_addStyle | |
| // @grant GM_getResourceText | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/highlight.min.js |
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
| #!/usr/bin/env bash | |
| { set +x; } 2>/dev/null | |
| IFS=$'\n' | |
| set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles | |
| set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive | |
| set "$@" ~/git # store on github/etc :) | |
| set "$@" ~/node_modules | |
| set "$@" ~/Applications # install apps with brew cask |
NewerOlder
