Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Apr 25, 2019
jetbrains-youtrack v2019.1.51759 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="JetBrains YouTrack 2019.1" displayVersion="19.1.51759">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B7A972A4-7F16-4A6F-8602-B9452F26B137}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{B7A972A4-7F16-4A6F-8602-B9452F26B137}]]></UninstallString>
@n-able-consulting
n-able-consulting / go.sh
Created Apr 25, 2019
ubuntu 18.04 go install script
View go.sh
#!/bin/bash
#version:1.0
#installing go 1.12.4
cd ~
curl -O https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
tar xvf go1.12.4.linux-amd64.tar.gz
rm go1.12.4.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv go /usr/local
View top-k-frequent-words.cpp
// https://leetcode.com/problems/top-k-frequent-words
struct Solution final {
static vector<string> topKFrequent(vector<string>& words, int k) noexcept {
unordered_map<string, int> tally(words.size());
auto it = words.begin();
for (auto& w : words) if (!tally[w]--) swap(*it++, w);
words.resize(tally.size());
const auto compare = [&tally](const string& a, const string& b) __attribute__((always_inline)) noexcept {
return tie(tally[a], a) < tie(tally[b], b);
View gtm_dmp_smart_tag.html
<!-- Run this code as close to the top of the <body> as you can -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
if(document.cookie.indexOf('bkdebug=true')>-1){debugger;}
// CHECK : is BK library available?
if(window.BKTAG && BKTAG.doTag){
setTimeout(function(){
View Potential Maintainers
Maintainers:
domenkozar: python37Packages.pg8000, python37Packages.pg8000, python37Packages.pg8000, python37Packages.pg8000
garbas: python37Packages.pg8000, python37Packages.pg8000, python37Packages.pg8000, python37Packages.pg8000
View Changed Paths
x86_64-darwin python37Packages.pg8000
x86_64-linux python37Packages.pg8000
aarch64-linux python37Packages.pg8000
i686-linux python37Packages.pg8000
View more.sql
--
-- For all faculty (active and inactive) give them a grandfather license
-- and assign them as the owner. Basically the grandfather license is a license
-- to just keep doing what they already can do. It however has an expiration
-- date
/* 'faculty' is a set of everyone in the person table that is type faculty */
with faculty as (
select person_id
from person
@brenzi
brenzi / gist:59b510e5a03dd0dc9053770b918c6e88
Created Apr 25, 2019
listening to and decoding substrate events
View gist:59b510e5a03dd0dc9053770b918c6e88
println!("Got message: {}", msg);
let retstr = msg.as_text().unwrap();
let value: serde_json::Value = serde_json::from_str(retstr).unwrap();
match value["id"].as_str() {
Some(idstr) => { },
_ => {
// subscriptions
println!("no id field found in response. must be subscription");
println!("method: {:?}", value["method"].as_str());
match value["method"].as_str() {
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created Apr 25, 2019
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Thursday, April 25, 2019, 6:06:30 PM
Loaded mods:
Core: (no assemblies)
JecsTools: 0Harmony(1.0.9.1), 0JecsTools(1.0.8.0), AbilityUser(1.18.0.0), AbilityUserAI(1.18.0.0), CompActivatableEffect(1.18.0.0), CompAnimated(1.18.0.0), CompBalloon(1.18.0.0), CompDeflector(1.18.0.0), CompDelayedSpawner(1.18.0.0), CompExtraSounds(1.18.0.0), CompInstalledPart(1.18.0.0), CompLumbering(1.18.0.0), CompOverlays(1.18.0.0), CompOversizedWeapon(1.18.0.0), CompSlotLoadable(1.18.0.0), CompToggleDef(1.18.0.0), CompVehicle(1.17.0.1), PawnShields(1.0.0.0), ThinkNodes(1.0.0.0)
HugsLib[ov:6.1.1]: 0Harmony(1.2.0.1), HugsLib(av:1.0.0.0,fv:6.1.1)
RIMMSLoadUp: 0Harmony(1.2.0.1), RIMMSLoadUp(1.0.7040.29929)
Miscellaneous 'CORE': ColonistKeys(1.0.0.0), CommonMisc(1.0.0.0)
Share The Load: 0Harmony(1.2.0.1), Share_The_Load(1.0.0.0)
Prisoner Harvesting: (no assemblies)
Replace Stuff: 0Harmony(1.2.0.1), Replace_Stuff(1.0.0.0)
You can’t perform that action at this time.