Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
Unprivilegedl lxc containers potentially provide higher security levels than privileged ones. But they also have some limitations, like it is not easy to start them on boot, or give them a public IP address. These instructions teach how to achieve these goals.
These instructions have been developed taking as base Ubuntu 14.04 and its packages. They can be adapted to other recent Linux distributions.
Be sure you have installed lxc, bridge-utils, cgmanager-utils and cgroup-bin packages:
apt-get install apt-get install lxc bridge-utils cgmanager-utils cgroup-bin
Protect access to host dmesg, so in case of a compromised container it does not give clues about the host.
LOCALE_EN := 0x4090409 | |
LOCALE_RU := 0x4190419 | |
CapsLock:: | |
if WinActive("ahk_class ConsoleWindowClass") { | |
PostMessage, 0x50, 0x02, 0,, A | |
} | |
else { | |
SetFormat, Integer, H | |
WinGet, WinID,, A | |
ThreadID := DllCall("GetWindowThreadProcessId", "UInt", WinID, "UInt", 0) |
Create an unprivileged Linux container (LXC) dedicated to running Wordpress websites.
If you install Wordpress regularly on Linux you can instead simply clone this container.
The Wordpress installation is nothing fancy. It's not multi-site, it's not SSL enabled by default, or anything like that. Just a plain bog-standard Wordpress installation serving a single domain.
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.
Differences to the 32-bit arch linux arm version:
#!/bin/bash | |
# Bash script to install SiS Mirage 3+ graphics drivers on Linux | |
# Supports 671/672MX graphics cards | |
# | |
# Created in March 2019 | |
# | |
# Tested on: | |
# - Lubuntu 18.04 (32-bit) with X.Org v1.19 | |
# - Xubuntu 18.04 (64-bit) with X.Org v1.20 |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
#!/bin/sh | |
# https://martin.elwin.com/blog/2008/05/backups-with-squashfs-and-luks/ | |
set -e | |
SQUASHFS_IMG="$1" | |
LUKS_IMG="$2" | |
CRYPTNAME=mkcrypt-$RANDOM | |
CRYPTDEV="/dev/mapper/$CRYPTNAME" |