Skip to content

Instantly share code, notes, and snippets.

while :;do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(printf "\U$(($RANDOM % 500))");sleep 0.05;done|gawk '{a[$3]=0;for (x in a){o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH\033[2;32m%s",o,x,$4;printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,$4;if (a[x] >= $1){a[x]=0;} }}'
@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
export default {
{
data() {
return {
rows: 0,
contentFilter: null,
pageLimit: 5,
perPage: 5,
currentPage: 1,
sortBy: 'age',
<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>
#!/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
}

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:

@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
/*****************
* 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!!!!!
*/
/*
* 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.
*/