Skip to content

Instantly share code, notes, and snippets.

View StringManolo's full-sized avatar
🇪🇦
Web Development / CyberSecurity / OS

StringManolo StringManolo

🇪🇦
Web Development / CyberSecurity / OS
View GitHub Profile
@z3nth10n
z3nth10n / a_dynamic_ip_from_namedotcom.md
Last active February 17, 2022 18:28
Updates your dynamic IP using name.com services

Name.com IP updater

Updates your dynamic IP using name.com services

This is useful when your have a local server in home.

Setup (3 steps)

Linq.py uses Python 2.7+ be careful!

@MichaelPolla
MichaelPolla / github-resize-pictures.md
Last active July 5, 2024 21:21
Markdown - Resize pictures in GitHub, including in comments comment

Markdown - Resize pictures in GitHub

I found that the "best" way is to use HTML, as it works both in Readme/.md files and also in comments (within Issues, Gist...)

E.g. when adding/editing a comment (within Issues, Gist...) :

  • Upload the picture by drag-and-drop in the text field
  • replace ![image](https://your-image-url.type) with <img src="https://your-image-url.type" width="100" height="100">

As mentioned by @cbestow (thanks!), it's not mandatory to set both width and height. If only one is set, the other will be adjusted accordingly to preserve the aspect ratio of the image.

@iwanbk
iwanbk / split_string_by_line.lua
Created April 29, 2013 03:39
Split string by line in Lua
for line in yourString:gmatch("([^\n]*)\n?") do
-- do something
end