Skip to content

Instantly share code, notes, and snippets.


robert ikoner

  • Slovakia
View GitHub Profile
ikoner / convert
Last active Dec 3, 2018
MS SQL convert datetime
View convert
convert(datetime,'2017-11-08 10:45:23.213', 21)
ikoner / removeFind
Last active Dec 13, 2017
visial studio
View removeFind
ikoner / disableEnter.js
Created Jul 28, 2017
Disable enter on form submit
View disableEnter.js
function disableEnter(e)
e = e || window.event;
var key = e.keyCode || e.charCode;
return key !== 13;
<form onkeypress="return disableEnter(event);">
ikoner / ResizePictures.vb
Created Jun 1, 2017
MS Word VBA - resize all images in document
View ResizePictures.vb
Sub ResizeImages()
Dim i As Long
With ActiveDocument
For i = 1 To .InlineShapes.Count
With .InlineShapes(i)
.Height = CentimetersToPoints(8)
.Width = CentimetersToPoints(8)
End With
Next i
End With
ikoner / file names
Created May 4, 2017
put file names into txt in Win
View file names
dir *.* > output.txt /b /o
ikoner / large.file
Created May 3, 2017
create dummy large file in Win
View large.file
fsutil file createnew large.txt 100000000
ikoner / links to Home
Created Apr 23, 2017
Change Home location
View links to Home
ikoner / HDD mount
Created Apr 23, 2017
automatic HDD mount
View HDD mount
Create the mount point. You’ll probably need to use sudo
sudo mkdir /mnt/disk2
sudo chown <user name> /mnt/disk2
Menu -> Accessories -> Disk
Click on the HDD, click on the partition, click on the two cogs, select “Mount Options”
Change the Mount Point to /mnt/disk2
Reboot to check
ikoner / virtualbox
Created Feb 18, 2016
resize storage
View virtualbox
vboxmanage modifyhd "/home/user/VirtualBox VMs/Win7/Win7.vdi" --resize 50000