Skip to content

Instantly share code, notes, and snippets.

Daniel Aguado drazul

Block or report user

Report or block drazul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am drazul on github.
  • I am dlagua (https://keybase.io/dlagua) on keybase.
  • I have a public key whose fingerprint is A5FB 097C 5C7C D4BA BCD7 3B97 BCB1 4543 88E3 BEF1

To claim this, I am signing this object:

@drazul
drazul / add-remove-windows-path.ps1
Last active May 10, 2018
Example to add and remove local-path to system-path-variable on Windows. Without the limitations of 1024 characters
View add-remove-windows-path.ps1
#------------ Add path to system variable -------------------------------------
$path2add = ';C:\path;'
$systemPath = [Environment]::GetEnvironmentVariable('Path', 'machine');
If (!$systemPath.contains($path2add)) {
$systemPath += $path2add
$systemPath = $systemPath -join ';'
[Environment]::SetEnvironmentVariable('Path', $systemPath, 'Machine');
write-host "Added to path!"
View human_log.py
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
You can’t perform that action at this time.