Skip to content

Instantly share code, notes, and snippets.

/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
/*
* robotMaze.js
*
* The blue key is inside a labyrinth, and extracting
* it will not be easy.
*
* It's a good thing that you're a AI expert, or
* we would have to leave empty-handed.
*/
/*****************
* bossFight.js *
*****************
*
* NO FARTHER, DR. EVAL!!!!
* YOU WILL NOT GET OUT OF HERE ALIVE!!!!
* IT'S TIME YOU SEE MY TRUE FORM!!!!
* FACE MY ROBOT WRATH!!!!!
*/
@msilvoso
msilvoso / ssl.conf
Last active April 18, 2017 13:38
ssl.conf
<IfModule mod_ssl.c>
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the SSL library.
# The seed data should be of good random quality.
# WARNING! On some platforms /dev/random blocks if not enough entropy
# is available. This means you then cannot use the /dev/random device
# because it would lead to very long connection times (as long as
# it requires to make more entropy available). But usually those
# platforms additionally provide a /dev/urandom device which doesn't

Keybase proof

I hereby claim:

  • I am msilvoso on github.
  • I am rougecitron (https://keybase.io/rougecitron) on keybase.
  • I have a public key ASDmKZSozXZoYSLjb5AM6sTsvoUmrAQGmGVpDLgGCyGwOwo

To claim this, I am signing this object:

#!/usr/bin/env bash
# Using flock to create a lockfile the elegant way
# from kfirlavi.com
readonly PROGNAME=$(basename $0)
error() {
print_err "$@"
exit 1
}
<template>
<div>
<b-form-input v-model="contentFilter" placeholder="Filter"></b-form-input>
<b-table id="my-table" striped hover :items="items" :fields="fields" :sort-by.sync="sortBy"
:sort-desc.sync="sortDesc" :per-page="perPage"
:current-page="currentPage" :filter="contentFilter" @filtered="onFiltered"></b-table>
<p class="mt-3">Total Rows: {{ rows }}</p>
<div v-show="rows > pageLimit">
<div class="mt-1">
<b-pagination v-model="currentPage" pills :total-rows="rows" :per-page="perPage" :limit="pageLimit" aria-controls="my-table" first-number last-number size="lg"></b-pagination>
export default {
{
data() {
return {
rows: 0,
contentFilter: null,
pageLimit: 5,
perPage: 5,
currentPage: 1,
sortBy: 'age',
@msilvoso
msilvoso / getcerts.ps1
Created November 3, 2020 17:10
Extract cert info from windows executables
$signatures=@{}
get-childitem | %{
$signatures[(Get-AuthenticodeSignature $_).SignerCertificate.GetCertHashString()]=@{
"name" = (Get-AuthenticodeSignature $_).SignerCertificate.GetName()
"expiration" = (Get-AuthenticodeSignature $_).SignerCertificate.GetExpirationDateString()
"file" = ($_)
}
}
$signatures.keys | %{"$_;"+$signatures[$_].name+";"+$signatures[$_].expiration+";"+$signatures[$_].file} > ..\certs.csv