Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / FilesSnapshot.xml
Created Jul 8, 2020
Grocery-Checklist-Shell v1.0.0 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\Grocery-Checklist-Shell.nupkg" checksum="285DE02148E7B1C0DFF775BD5B42194F" />
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\Grocery-Checklist-Shell.nuspec" checksum="0C2FD9446274E29C7FDD169913DBB0DA" />
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\tools\Autofac.dll" checksum="5CC8BB2FB6C717232F2E2BC3F215CB80" />
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\tools\Autofac.Extensions.DependencyInjection.dll" checksum="04F82181B2448271B47ED3D4828AA5A6" />
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\tools\chocolateyinstall.ps1" checksum="83AABB09B123F986824154BFA7431BE4" />
<file path="C:\ProgramData\chocolatey\lib\Grocery-Checklist-Shell\tools\ConsoleTables.dll" checksum="D6D8D3E92A
@anevins12
anevins12 / slack-cool-down-replies.js
Created Jul 8, 2020
Slack.com: Stop yourself from replying immediately to threads
View slack-cool-down-replies.js
// ==UserScript==
// @name Slack cool-down
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Have the urge to respond immediately to a new thread? Hit the cool-down button until you're ready.
// @author anevins12
// @match https://app.slack.com/*
// @grant none
// ==/UserScript==
View peoplemodel
extension PeopleModel: CustomDebugStringConvertible {
var debugDescription: String {return name}
}
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Jul 8, 2020
googlechromebeta v84.0.4147.85-beta - 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="Google Chrome Beta" displayVersion="84.0.4147.85">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1157FBED-D711-3018-91C9-3415E252B4C8}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{1157FBED-D711-3018-91C9-3415E252B4C8}]]></UninstallString>
@angch
angch / main.go
Created Jul 8, 2020
A quickie Go script to populate a database with two tables with test data
View main.go
package main
// A quickie script to populate a database with two tables with test data
import (
"log"
"reflect"
"github.com/bxcodec/faker/v3"
"github.com/icrowley/fake"
@ianfinch
ianfinch / docker
Created Jul 8, 2020
Quick reminders for docker commands
@r10r
r10r / deadline.sh
Created Jul 8, 2020
Self terminate shell script after deadline.
View deadline.sh
#!/bin/sh
PID=$$
deadline() {
sleep $1
kill $PID
}
export deadline
deadline 2 &
View enum-assertions.md

Enum Assertions / Lookup Assertions

Search Terms

enum, "key mirror"

Suggestion

as enum on an object literal type enables users to let TypeScript know an object literal is being used like an enumeration.

View Cloudflare UFW
# Are you using Cloudflare to protect your web server? Don't allow
# just _any_ system to connect to your server! Only CF systems should
# be allowed to connect to your server.
#
# From that "allow https" rule, and use these commands instead to add
# limit access to CF IPs!
# Last updated July 8th, 2020
# IPv4
View Minesweeper.cpp
#include <time.h>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <windows.h>
#define FIELD_WIDTH 9 //フィールドの横幅
#define FIELD_HEIGHT 9 //フィールドの縦幅
#define BOMB_MAX 25 //マスにある爆弾の最大数
You can’t perform that action at this time.