Skip to content

Instantly share code, notes, and snippets.

View no1fushi's full-sized avatar
:octocat:

Katochan no1fushi

:octocat:
  • Internet / Japan, Saitama, Soka
View GitHub Profile
@nfekete
nfekete / wsl-fix-resolvconf.sh
Created August 8, 2018 03:05
Fix resolv.conf in Windows Subsystem for Linux, when WSL doesn't correctly generate it.
#!/bin/bash
TMP=`mktemp`
trap ctrlC INT
removeTempFiles() {
rm -f $TMP
}
ctrlC() {
@wokowa
wokowa / tren.bat
Created March 21, 2014 04:51
tren - text edit rename batch file
@echo off
if "%1" == "/?" (
goto usage
)
set myname=%~nx0
REM "Output the name of the temporary file"
set rfpath=\rename.tmp