Skip to content

Instantly share code, notes, and snippets.

View sdoro's full-sized avatar

Sandro Doro sdoro

View GitHub Profile
@sdoro
sdoro / yt-downloader
Created August 31, 2018 08:45
remember command to download YT downloader
youtube-dl --ignore-errors -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 YT-URL
{
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
@sdoro
sdoro / form-validation.markdown
Created January 14, 2018 15:36
Form validation
@sdoro
sdoro / index.html
Last active January 14, 2018 15:13
Moving Elements
<ul id="yours">
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
</ul>
<ul id="mine">
<li>First</li>
<li>Second</li>
@sdoro
sdoro / index.html
Last active January 14, 2018 15:13
onmouseover
<h1 id="heading">Just a normal heading</h1>
<p>Followed by some normal paragraph text</p>
@sdoro
sdoro / index.html
Created January 14, 2018 14:24
onclick
<p id="myParagraph">Good Morning!</p>
@sdoro
sdoro / index.html
Last active January 14, 2018 15:13
Set Attribute
<a id="myLink" href="http:www.bing.com">Go to my favorite site</a>
@sdoro
sdoro / index.html
Last active January 14, 2018 15:14
innerHTML
<ul>
<li>salt</li>
<li>pepper</li>
</ul>
<p>Today is a <span id="day">bad</span> day</p>
@sdoro
sdoro / remake.sh
Last active January 6, 2016 08:46
remake iso for a very old server
dd if=Fedora-Server-netinst-i386-23.iso bs=512 count=1 of=/tmp/f23.mbr
mount -o loop Fedora-Server-netinst-i386-23.iso /mnt
cd /mnt
xorriso -as mkisofs -o /tmp/f23.iso -b /isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -isohybrid-mbr /tmp/f23.mbr -partition_offset 16 .