Skip to content

Instantly share code, notes, and snippets.

choco-bot / FilesSnapshot.xml
Created Apr 21, 2019
mailsend v1.18 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="" xmlns:xsi="">
<file path="C:\ProgramData\chocolatey\lib\mailsend\mailsend.nupkg" checksum="3E77100004AF31D0BA4B44475B754F7D" />
<file path="C:\ProgramData\chocolatey\lib\mailsend\mailsend.nuspec" checksum="219321479B89536D64DAC0B92FD618A8" />
<file path="C:\ProgramData\chocolatey\lib\mailsend\" checksum="2A2E1F7BC46FF3B347636FC0F7A453B0" />
<file path="C:\ProgramData\chocolatey\lib\mailsend\tools\chocolateyinstall.ps1" checksum="70FF0F1C8B0447FD0AC61AABAEBC887A" />
<file path="C:\ProgramData\chocolatey\lib\mailsend\tools\mailsend.exe" checksum="BD3D37B37CD56B510BEDF39806712400" />
xiongchengqing /
Created Apr 21, 2019 — forked from tzmartin/
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
rust-play /
Created Apr 21, 2019
Code shared from the Rust Playground
use serde; // 1.0.90
use serde::ser::{SerializeSeq, Serializer};
use serde::Serialize;
use serde_urlencoded; // 0.5.4
fn main() {
let p = P {
ids: vec!["1", "2"],
println!("{}", serde_urlencoded::to_string(&p).unwrap());
jamesamrundle / timetest.c
Created Apr 21, 2019
PROGRAMATICALLY measure cache line size with C.
View timetest.c
#include <stdio.h>
#include <stdlib.h> // for exit(), rand(), strtol()
#include <pthread.h>
#include <time.h> // for nanosleep()
#include <errno.h> // for EINTR error check in millisleep()
#include <stddef.h>
#include <stdio.h>
#include <sys/sysinfo.h>
#include <math.h>
View gaborgenhelper.m
function gaborgenhelper(tilt, freq, title, sc, reso, phase, contrast, aspectratio)
if nargin < 4
reso = 400;
phase = 0;
sc = 50.0;
%freq = .07;
%tilt = 0;
contrast = 100.0;
aspectratio = 1.0;
avin-sharma /
Created Apr 21, 2019
A simple terminal based 2 player TIC-TAC-TOE
# Terminal TIC-TAC-TOE
# Written in Python 3
class Board:
def __init__(self, n=3):
self.n = n
self.state = [[' ' for _ in range(n)] for _ in range(n)]
self.active_player = 'X'
self.t = 0
View Preprocessing Script
# Import necessary libraries
import re
import pandas as pd
import numpy as np
import nltk
from bs4 import BeautifulSoup
from nltk.tokenize import WordPunctTokenizer
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
choco-bot / FilesSnapshot.xml
Created Apr 21, 2019
sil v1.3 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="" xmlns:xsi="">
<file path="C:\ProgramData\chocolatey\lib\sil\" checksum="A1AEDC13B47FD457E906A6B3A35FD45D" />
<file path="C:\ProgramData\chocolatey\lib\sil\sil.nupkg" checksum="D31C28DB186C4919C2903658BAF4B6C8" />
<file path="C:\ProgramData\chocolatey\lib\sil\sil.nuspec" checksum="0871F1C833E13C81E053211C6A12773A" />
<file path="C:\ProgramData\chocolatey\lib\sil\content\Sil\.DS_Store" checksum="92D64BBE4788404CA36A85ACDBA7C6E3" />
<file path="C:\ProgramData\chocolatey\lib\sil\content\Sil\Sil 1.3 Manual.pdf" checksum="AF07E8F53EB8FCAC596103FF164C3495" />
<file path="C:\ProgramData\chocolatey\lib\sil\content\Sil\sil.exe" checksum="6B84249D4BDE9E4121B1784471AEC0E3" />
<file path="C:\ProgramData\chocolatey\lib\sil\content\Sil\sil.exe.ignore" checksum="D41D8CD98F00B204E9800998ECF8427E" />
View service
apiVersion: v1
kind: Service
name: external-service
- port: 443
protocol: TCP
targetPort: 443
type: ExternalName
HugsLibRecordKeeper / output_log.txt
Created Apr 21, 2019
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Sunday, April 21, 2019, 5:34:19 PM
Loaded mods:
Core: (no assemblies)
HugsLib[4.1.1]: 0Harmony(, HugsLib(
Humanoid Alien Races 2.0: 0Harmony(, AlienRace(
Combat Extended: 0Harmony(, CombatExtended(
Core SK: 0Harmony(, ArchitectSense(, CaveFlora(1.0.6550.35175), Compatibility_AlienRaces(1.0.6536.29363), Compatibility_CombatExtended(1.0.6667.38392), Core_SK(0.18.6527.35959), FertileFields(1.0.6556.2178), Fix_WrapAroundPlanetSurface(1.0.6573.17543), Mending(1.0.6725.2390), ProjectRimFactory(, Quarry(, Rainbeau's Archipelagos(1.0.6548.37067), RightToolForJob(1.0.6605.35052), SaveGameFix(, UniversalFermenter(
SeedsPlease: Seeds(1.0.6569.40688)
Infused: 0Harmony(, Infused(
EdB Prepare Carefully: 0Harmony(, EdBPrepareCarefully(
You can’t perform that action at this time.