Skip to content

Instantly share code, notes, and snippets.

View ikoner's full-sized avatar

robert ikoner

  • Slovakia
View GitHub Profile
@ikoner
ikoner / convert
Last active December 3, 2018 10:09
MS SQL convert datetime
convert(datetime,'2017-11-08 10:45:23.213', 21)
https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017
@ikoner
ikoner / removeFind
Last active December 13, 2017 11:39
visial studio
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\Find
@ikoner
ikoner / disableEnter.js
Created July 28, 2017 11:52
Disable enter on form submit
function disableEnter(e)
{
e = e || window.event;
var key = e.keyCode || e.charCode;
return key !== 13;
}
<form onkeypress="return disableEnter(event);">
@ikoner
ikoner / ResizePictures.vb
Created June 1, 2017 12:33
MS Word VBA - resize all images in document
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
ikoner / file names
Created May 4, 2017 14:54
put file names into txt in Win
dir *.* > output.txt /b /o
@ikoner
ikoner / large.file
Created May 3, 2017 12:05
create dummy large file in Win
fsutil file createnew large.txt 100000000
@ikoner
ikoner / links to Home
Created April 23, 2017 10:23
Change Home location
@ikoner
ikoner / HDD mount
Created April 23, 2017 10:22
automatic 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
ikoner / virtualbox
Created February 18, 2016 12:51
resize storage
vboxmanage modifyhd "/home/user/VirtualBox VMs/Win7/Win7.vdi" --resize 50000
https://wordpress.org/plugins/cookie-law-info/