Skip to content

Instantly share code, notes, and snippets.

View kirannhegde's full-sized avatar

Kiran Narayan Hegde kirannhegde

  • Citrix Systems
  • Bangalore
View GitHub Profile
@kirannhegde
kirannhegde / DevBox.BoxStarter.ps1
Last active July 31, 2017 10:03 — forked from willprice/DevBox.BoxStarter.ps1
Boxstarter seemingly rebooting constantly
Update-ExecutionPolicy Unrestricted
# System settings
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMs -SupressReboots
Set-StartScreenOptions -EnableBootToDesktop
## Windows features
choco install -y IIS-WebServerRole -source WindowsFeatures
# Desktop settings
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives `
@kirannhegde
kirannhegde / gist:996c23b67d1c4fd418d0031c9220c80a
Created September 7, 2017 11:52
Uninstall behavior with choco
2017-09-07 19:30:23,737 7988 [DEBUG] - XmlConfiguration is now operational
2017-09-07 19:30:23,815 7988 [INFO ] - ============================================================
2017-09-07 19:30:24,018 7988 [INFO ] - Chocolatey v0.10.8
2017-09-07 19:30:24,034 7988 [DEBUG] - Chocolatey is running on Windows v 10.0.15063.0
2017-09-07 19:30:24,050 7988 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-09-07 19:30:24,050 7988 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-09-07 19:30:24,065 7988 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall python2.x -x -dv
2017-09-07 19:30:24,081 7988 [DEBUG] - Received arguments: uninstall python2.x -x -dv
2017-09-07 19:30:24,143 7988 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-09-07 19:30:24,159 7988 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
[2017-10-15T02:23:08.3794318+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: Installing package https://gist.githubusercontent.com/abcnhegde/7e842879258684c3021fa883cb1c91f5/raw/f4cee78c5b1bb9f11ad9bf00146d9d86406607db/TCDevSetup
[2017-10-15T02:23:08.5044162+08:00:::PID 6524] [WIN10EN-LD52G96]+ Boxstarter starting Installation session.
[2017-10-15T02:23:08.5200475+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: NoPassword is false checking autologin
[2017-10-15T02:23:08.5981652+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: AutoLogin status is False
[2017-10-15T02:23:08.6137893+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: NoPassword is set to False and RebootOk is set to True and the NoPassword parameter passed was False
[2017-10-15T02:23:08.6450395+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: Disabling Automatic Updates from Windows Update
[2017-10-15T02:23:08.6450395+08:00:::PID 6524] [WIN10EN-LD52G96]Boxstarter: Disabling Automatic Updates from Windows Update
[2017-10-15T02:23:08.7231652+08:00:::PID 6524
2018-01-30 15:09:58,131 2276 [DEBUG] - XmlConfiguration is now operational
2018-01-30 15:09:58,178 2276 [INFO ] - ============================================================
2018-01-30 15:09:58,225 2276 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\config".
2018-01-30 15:09:58,350 2276 [DEBUG] - Attempting to create directory "C:\Users\blahblah\AppData\Local\Temp\chocolatey".
2018-01-30 15:09:58,396 2276 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\config\chocolatey.config"
with "C:\ProgramData\chocolatey\config\chocolatey.config.2276.update".
Backup placed at "C:\ProgramData\chocolatey\config\chocolatey.config.backup".
2018-01-30 15:09:58,396 2276 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\config\chocolatey.config.2276.update"
to "C:\ProgramData\chocolatey\config\chocolatey.config".
2018-01-30 15:09:58,412 2276 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.2276.update".
@kirannhegde
kirannhegde / PackerLog.txt
Created June 17, 2018 07:09
Packer - Not working with winrm
2018/06/16 14:38:06 [INFO] Packer version: 1.2.4
2018/06/16 14:38:06 Packer Target OS/Arch: windows amd64
2018/06/16 14:38:06 Built with Go Version: go1.10.1
2018/06/16 14:38:06 [DEBUG] Discovered plugin: xenserver-iso = C:\packer\packer-builder-xenserver-iso.exe
2018/06/16 14:38:06 [DEBUG] Discovered plugin: xenserver-xva = C:\packer\packer-builder-xenserver-xva.exe
2018/06/16 14:38:06 [DEBUG] Discovered plugin: xenserver-iso = C:\packer\packer-builder-xenserver-iso.exe
2018/06/16 14:38:06 [DEBUG] Discovered plugin: xenserver-xva = C:\packer\packer-builder-xenserver-xva.exe
2018/06/16 14:38:06 Using internal plugin for amazon-ebs
2018/06/16 14:38:06 Using internal plugin for file
2018/06/16 14:38:06 Using internal plugin for virtualbox-iso
@kirannhegde
kirannhegde / W2k16XenserverJson.json
Created June 17, 2018 07:12
W2k16XenserverJson
{
"variables": {
"remote_host": "{{env `HOST`}}",
"remote_username": "{{env `USERNAME`}}",
"remote_password": "{{env `PASSWORD`}}"
},
"builders": [
{
"type": "xenserver-iso",
@kirannhegde
kirannhegde / MsiexecNotStopping.txt
Created May 14, 2019 12:16
Boxstarter not waiting for msiexec processes to stop
[2019-05-14T19:23:36.7324365+08:00:::PID 4416] parent process is explorer
[2019-05-14T19:23:36.8105601+08:00:::PID 4416] Error getting parent process
[2019-05-14T19:23:36.8105601+08:00:::PID 4416] Boxstarter: Installing package C:\Users\bhaskar\TCDevSetup.ps1
[2019-05-14T19:23:36.8886901+08:00:::PID 4416] Boxstarter Version 2.12.0
[2019-05-14T19:23:36.9043128+08:00:::PID 4416] (c) 2018 Chocolatey Software, Inc, 2012 - 2018 Matt Wrock. https://boxstarter.org
[2019-05-14T19:23:36.9355599+08:00:::PID 4416] + Boxstarter starting Installation session.
[2019-05-14T19:23:36.9511871+08:00:::PID 4416] Boxstarter: NoPassword is false checking autologin
[2019-05-14T19:23:36.9824360+08:00:::PID 4416] Boxstarter: AutoLogin status is False
[2019-05-14T19:23:36.9980619+08:00:::PID 4416] Boxstarter: NoPassword is set to False and RebootOk is set to True and the NoPassword parameter passed was False
@kirannhegde
kirannhegde / Install.log
Last active June 20, 2019 10:36
VS2015 Enterprise Installation logs
[15E4:0FD8][2019-06-19T03:53:18]i001: Burn v3.7.4906.0, Windows v10.0 (Build 17763: Service Pack 0), path: C:\Users\ContainerAdministrator\AppData\Local\ChocoCache\isoextact\vs2015.3.ent_enu\vs_enterprise.exe, cmdline: '/Q /NoRestart /NoWeb /Log "C:\Users\ContainerAdministrator\AppData\Local\ChocoCache\Logs\vs2015enterprise\14.0.25431\Install.log" /ProductKey XNGMC9HTP7TF76736K8CJB47C /AdminFile "C:\Users\ContainerAdministrator\AppData\Local\ChocoCache\AdminDeployment-2015-enterprise-with-update-3.xml" -burn.unelevated BurnPipe.{6B93605C-72C0-4D20-B436-9DB1D1C0131A} {7ADAEEA7-41B2-4C1B-B6CB-A9BEAC8C249C} 3560'
[15E4:0FD8][2019-06-19T03:53:18]i000: Initializing string variable 'SKUFriendlyName' to value 'VS Enterprise'
[15E4:0FD8][2019-06-19T03:53:18]i000: Initializing numeric variable 'SKUFriendlyID' to value '3392'
[15E4:0FD8][2019-06-19T03:53:18]i000: Initializing string variable 'EditionDisplayName' to value 'Enterprise 2015'
[15E4:0FD8][2019-06-19T03:53:18]i000: Initializing string variable 'ExtraEditionD
@kirannhegde
kirannhegde / FB-PE-InterviewTips.md
Created November 14, 2019 16:52 — forked from ameenkhan07/FB-PE-InterviewTips.md
Facebook Production Engineering Interview

What to Expect and Tips

• 45-minute systems interview, focus on responding to real world problems with an unhealthy service, such as a web server or database. The interview will start off at a high level troubleshooting a likely scenario, dig deeper to find the cause and some possible solutions for it. The goal is to probe your knowledge of systems at scale and under load, so keep in mind the challenges of the Facebook environment.
• Focus on things such as tooling, memory management and unix process lifecycle.

Systems

More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).

Design/Architecture 

Interview is all about taking an ambiguous question of how you might build a system and letting

2020/06/29 17:10:39 [INFO] Packer version: 1.6.0 [go1.13.12 windows amd64]
2020/06/29 17:10:39 Checking 'PACKER_CONFIG' for a config file path
2020/06/29 17:10:39 'PACKER_CONFIG' not set; checking the default config file path
2020/06/29 17:10:39 Attempting to open config file: C:\Users\kiranh\AppData\Roaming\packer.config
2020/06/29 17:10:39 [WARN] Config file doesn't exist: C:\Users\kiranh\AppData\Roaming\packer.config
2020/06/29 17:10:39 Setting cache directory: C:\Azure\buildprovisioning\packer_cache
cannot determine if process is in background: Process background check error: not implemented yet
2020/06/29 17:10:39 Creating plugin client for path: C:\Azure\buildprovisioning\packer.exe
2020/06/29 17:10:39 Starting plugin: C:\Azure\buildprovisioning\packer.exe []string{"C:\\Azure\\buildprovisioning\\packer.exe", "plugin", "packer-builder-azure-arm"}
2020/06/29 17:10:39 Waiting for RPC address for: C:\Azure\buildprovisioning\packer.exe