Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
Discover gists
FROM php_base:latest | |
RUN apt update -y && apt upgrade -y | |
WORKDIR /var/www/html | |
RUN composer update --optimize-autoloader | |
COPY src/. /var/www/html | |
COPY build/php/.env.local /var/www/html/.env |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"math/rand" | |
"sync" | |
"time" |
A live CD or live DVD is a complete bootable Linux operating system loaded from a CD or DVD. Although there are a lots of live Linux CDs, for seemingly every taste and purpose, it might still be useful on occasion to build your own. This guide details the steps to build a bootable live CD/DVD based on Debian “wheezy”.
Step 1 – Installing the necessary software
These are the software packages you need to install on your Debian system:
apt-get install xorriso live-build syslinux squashfs-tools
Step 2 – Create a basic filesystem
Agora vamos visualizar os processos dentro de contêineres Docker, rode o comando abaixo
docker run -d nginx
Quando contêiner nginx estiver rodando, execute este outro comando e perceba que o nginx criou vários PIDs (process ids) dentro do contêiner para que o servidor web funcione
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
extension ModelComponent { | |
/// Dump the MeshResource.Model | |
func dumpMeshResourceModel() { | |
let printSIMD3Float = { (value: SIMD3<Float>) in | |
print("(\(value.x), \(value.y), \(value.z)), ", terminator: "") | |
} | |
let printSIMD2Float = { (value: SIMD2<Float>) in | |
print("(\(value.x), \(value.y)), ", terminator: "") | |
} |
#!/bin/sh | |
# Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS | |
# Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9) | |
for i in $@; do | |
BN=$(basename $i .svg) | |
inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i | |
convert -compress LZW -alpha remove $BN.png $BN.tiff | |
mogrify -alpha off $BN.tiff |
// build: gcc amdgpustats.c -o amdgpustats `pkg-config --cflags --libs libdrm` | |
// Requires Linux 4.12 or later, and libdrm 2.4.77 or later | |
#include <assert.h> | |
#include <errno.h> | |
#include <limits.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> |