I hereby claim:
- I am mrxinu on github.
- I am mrxinu (https://keybase.io/mrxinu) on keybase.
- I have a public key whose fingerprint is B3E0 D3EE 051C EE58 B655 19F9 C879 0635 7734 B1CC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"time" |
{ | |
"window.zoomLevel": 0, | |
"go.lintOnSave": "package", | |
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": false, | |
"workbench.iconTheme": "vs-seti", | |
"go.addTags": { | |
"tags": "json", | |
"options": "json=omitempty", | |
"promptForTags": true, |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
# | |
# Installed as a PowerShell script monitor, this will look at a file and | |
# determine how many times a string has appeared since the last polling | |
# interval. | |
# | |
# The Scripts Arguments line should read: | |
# | |
# \\path\to\filename,"string to match" | |
# |
# frozen_string_literal: true | |
################################################################# | |
## | |
## First install the wrapper & xml parser `gem install samanage nokogiri` | |
## To run `ruby import_whd_tickets.rb api-token export-file.csv` | |
## | |
## | |
## The CSV input columns were: | |
## |
/* | |
******************************************************************************** | |
Golang - Asterisk and Ampersand Cheatsheet | |
******************************************************************************** | |
Also available at: https://play.golang.org/p/lNpnS9j1ma | |
Allowed: | |
-------- | |
p := Person{"Steve", 28} stores the value |
<AlertDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Alerting.Models"> | |
<AlertID>1009</AlertID> | |
<AlertMessage>All replication neighbors are dead</AlertMessage> | |
<AlertRefID>74913425-d003-4b48-bcb0-96a049f31ce6</AlertRefID> | |
<Canned>false</Canned> | |
<Category /> | |
<CreatedBy>omavel</CreatedBy> | |
<CustomProperties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> |