Skip to content

Instantly share code, notes, and snippets.

View vaibhawvipul's full-sized avatar
💻
If you want to change the world, become a teacher

Vipul Vaibhaw vaibhawvipul

💻
If you want to change the world, become a teacher
View GitHub Profile
@nikhita
nikhita / update-golang.md
Last active November 17, 2025 00:14
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

ffmpeg -i input-video.mp4 -s 640x480 file-output.mp4
@keki
keki / gist:9261886
Created February 27, 2014 23:25
Scala.xml vs. Jsoup example
//Scala xml -- this is supposed to return a collection of the elements to be modified
(e \ "_").find { child =>
(child \\ "_")
.filter { c =>
!isMedia(c.label)
}
.exists { c =>
c.child.exists { c =>
(singleParagraphs && isMedia(c.label)) || (c.label == "#PCDATA" && isEmpty(c.text))
}