Skip to content

Instantly share code, notes, and snippets.

View aarcangeli's full-sized avatar

Alessandro Arcangeli aarcangeli

View GitHub Profile
@nicolaskopp
nicolaskopp / killDocker.md
Last active April 24, 2024 16:06
How to delete `C:\ProgramData\Docker` and fixing "Access denied" errors

How to delete C:\ProgramData\Docker and fixing "Access denied" errors

Still an issue in January 2024. Welcome to the future of web development. Take this Gist to rest and calm down.

Here is how to delete C:\ProgramData\Docker.

  1. Uninstall docker the normal way (yeah you may have already done that)
  2. Copy this:
@runspired
runspired / form.html
Created May 23, 2016 13:46
How to turn off password and email/username autocomplete.
<!--
<form autocomplete="off"> will turn off autocomplete for the form in most browsers
except for username/email/password fields
-->
<form autocomplete="off">
<!-- fake fields are a workaround for chrome/opera autofill getting the wrong fields -->
<input id="username" style="display:none" type="text" name="fakeusernameremembered">
<input id="password" style="display:none" type="password" name="fakepasswordremembered">
@socantre
socantre / CMakeLists.txt
Created August 24, 2015 03:45
Example of using add_custom_command and add_custom_target together in CMake to handle custom build steps with minimal rebuilding: This example untars library headers for an INTERFACE library target
set(LIBFOO_TAR_HEADERS
"${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo.h"
"${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo_utils.h"
)
add_custom_command(OUTPUT ${LIBFOO_TAR_HEADERS}
COMMAND ${CMAKE_COMMAND} -E tar xzf "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar"
COMMAND ${CMAKE_COMMAND} -E touch ${LIBFOO_TAR_HEADERS}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/include/foo"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar"
@stravant
stravant / terrain.lua
Created October 22, 2012 05:18
Roblox Terrain Generator
local Terrain = game.Workspace.Terrain
--==========================================================================================================--
-- Persistent noise generation code ==--
--==========================================================================================================--
--
-- Generating perlin noise is the most expensive part of the terrain generation. It is also however, totally
-- predictable, so we can pre-generate most of the perlin noise that we will need before the main terrain
@extronics
extronics / forward.js
Created March 15, 2012 10:31
node.js port forwarding
// Simple port forwarding ...
// forward.js <local port> <forward host> <forward port>
// i.e. "forward.js 8080 1.2.3.4 80" will forward 127.0.0.1:8080 to 1.2.3.4:80
var net = require("net");
var portIn = process.argv[2],
hostOut = process.argv[3],
portOut = process.argv[4];
net.createServer(function(connIn) {