Skip to content

Instantly share code, notes, and snippets.

@johnzielke
johnzielke / restart_touchpad.bat
Last active February 10, 2022 19:00
This batch file solves the Problem I am having with my thinkpad (X1 Carbon) where the touchpad stops working correctly.
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
@johnzielke
johnzielke / 01proxy
Last active May 5, 2021 15:16
Apt proxy (for docker)
// Install apt-cacher before https://wiki.ubuntuusers.de/Lokale_Paketquellen/Apt-Cacher-ng/
// Run with docker build --network="host"
// https://stackoverflow.com/questions/47067944/how-to-access-the-hosts-machines-localhost-127-0-0-1-from-docker-container
//Copy to /etc/apt/apt.conf.d/
Acquire::http { Proxy "http://localhost:3142"; };
Acquire::https { Proxy "https://"; };