Skip to content

Instantly share code, notes, and snippets.

@matteosecli
matteosecli / download-vscode-server.sh
Last active July 7, 2026 23:56
Download the latest VS Code Server (official distribution)
#!/bin/sh
# Note: consider using bash with "set -euo pipefail"
set -eu
# Decide whether to install the SSH remote server (-ssh),
# the web one (-web), or both (if no argument is given).
INSTALL_SSH=1
INSTALL_WEB=1
if [ "$#" -gt 0 ]; then
@levid0s
levid0s / download_vs_code_server.sh
Last active July 7, 2026 23:57
Download VS Code Server on OpenWRT x64
#!/bin/sh
# Copyright 2024 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
@MarcosYonamine963
MarcosYonamine963 / usb-c-pd.md
Last active February 23, 2026 09:12
USB-C PD (Power Delivery)

USB-C PD (Power Delivery)

This file explains the basics of what I learned about USB-C PD to help development engineers on their projects. I'm not an english mother-language speaker, so here I leave my apology for any mistakes.

Again, this docs relates what I learned. I'm not an expert on USB-C PD.

Introduction

The USB-C standard came with far more features than the previous standards. The thing that most catches the attention of common users is that you don't need to be aware of cable orientation (the connector is symmetrical).

@discrimy
discrimy / preinstall-vscode-extensions.sh
Created August 1, 2023 21:26
Script to preinstall vscode extensions inside devcontainer image
#!/bin/env bash
set -e
# USAGE:
# COPY .devcontainer/ /app/.devcontainer/
# ARG VSCODE_VERSION=2ccd690cbff1569e4a83d7c43d45101f817401dc
# RUN bash .devcontainer/preinstall-vscode-extensions.sh $VSCODE_VERSION /app/.devcontainer/devcontainer.json
#
# Preinstall vscode server extensions.
# Uses vscode of provided version (git commit hash) to download extensions inside container

Writing C Software without the Standard Library
FOR UN*X


There are many tutorials on the web that explain how to build a simple "Hello, World" in C without the use of libc on AMD64, but most of them stop there.

This guide hopes to provide a more complete explanation that will allow you to build yourself a small framework to write more complex programs. The code will support both AMD64, and i386.

@pavlov200912
pavlov200912 / highload.md
Last active May 17, 2026 20:53
Конспект Проектирование Высоконагруженных систем 2021

package main

/* Билеты по Проектированию Высоко нагруженных систем

  • В этом конспекте нет автоматической грамматической проверки
  • Он написан для личного пользования, исключительно для подготовки к экзамену
@b01
b01 / download-vs-code-server.sh
Last active July 17, 2026 02:47
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
@anonymous1184
anonymous1184 / VSCode.md
Last active April 16, 2026 06:51
AHK Debugging with Visual Studio Code

AHK Debugging with Visual Studio Code

Created on 2021/11/03 with VSCode version 1.53.
Last revision on 2022/06/30 with VSCode version 1.68.2.

I'm not a native English speaker, so please report inconsistencies to [u/anonymous1184][00] (or send a .patch of the [source][01]).

Table of Contents

@f41gh7
f41gh7 / victoria_metrics_push_gw.py
Created January 17, 2021 02:08
VictoriaMetrics as push gateway.
from prometheus_client import Counter, start_http_server
from threading import Thread
import requests as re
import time
JOB_NAME = 'test'
INSTANCE = 'localhost'
def scrape_and_send(local_url: str, vm_url: str, scrape_interval: int):
— Да?
— Алё!
— Да да?
— Ну как там с деньгами?
— А?
— Как с деньгами-то там?
— Чё с деньгами?
— Чё?
— Куда ты звонишь?