Skip to content

Instantly share code, notes, and snippets.

View stroparo's full-sized avatar
💭
😃

Cristian Stroparo stroparo

💭
😃
View GitHub Profile
@stroparo
stroparo / clone-efi-to-new-partition.txt
Last active February 21, 2022 13:41
Windows diskpart commands for EFI clone, movement, resizing etc.
:: In an admin ran cmd / powershell terminal window:
diskpart
list disk
select disk 0
create partition efi size=800
list volume
select volume 14
list volume
assign letter=v
format quick fs=fat32 label="EFI"
@stroparo
stroparo / winlnkinfo.py
Created May 15, 2020 21:11
read windows-format .lnk links files
#!/usr/bin/python3
# Link Format from MS: https://msdn.microsoft.com/en-us/library/dd871305.aspx
# Need to be able to read shortcut target from .lnk file on linux or windows.
# Original inspiration from:
# http://stackoverflow.com/questions/397125/reading-the-target-of-a-lnk-file-in-python
from pathlib import Path, PureWindowsPath
import struct
import sys
@stroparo
stroparo / tips.mkd
Last active October 16, 2018 15:22 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet
@stroparo
stroparo / cloudSettings
Last active October 14, 2021 15:17
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-14T15:16:56.073Z","extensionVersion":"v3.4.3"}
@stroparo
stroparo / jenkins_snippets.groovy
Last active July 17, 2018 17:46
Jenkins script snippets
// A collection of Jenkins scripts commonly used in the script console
// Jenkins script console is at YOUR_JENKINS_URL/script
// Build abortion
Jenkins.instance.getItemByFullName("entire/path/to/job[/branch]").getBuildByNumber(buildNum).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
// Build deletion
Jenkins.instance.getItemByFullName("entire/path/to/job[/branch]").getBuildByNumber(buildNum).delete()
@stroparo
stroparo / cygwin-mirror-speed.py
Created May 13, 2018 21:24 — forked from ushkinaz/cygwin-mirror-speed.py
Tests speed of http mirrors of cygwin
#!/usr/bin/env python3
"""
Tests http mirrors of cygwin
"""
import random
import time
from urllib.request import urlopen
import sys
__author__ = 'Dmitry Sidorenko'