Skip to content

Instantly share code, notes, and snippets.

@rjescobar
rjescobar / extend-trial-jetbrains-windows.bat
Created August 31, 2021 02:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@rjescobar
rjescobar / anonymous_cast
Created May 7, 2013 23:11
Crear una clase anónima para generar un objeto intermedio
var type = new { AuthenticationClient = new { ProviderName = string.Empty },
DisplayName = string.Empty,
ExtraData = new { } };
var clientData = JsonConvert.DeserializeAnonymousType(responseGetOAuthClientData.ToString(), type);
@rjescobar
rjescobar / bootstrap_form
Created May 7, 2013 18:44
Bootstrap Form Control Markup.
<div class="control-group">
<div class="controls">
</div>
</div>