Skip to content

Instantly share code, notes, and snippets.

@kubrick06010
kubrick06010 / chikito.rb
Created May 18, 2017 01:48
Script para producir frases de nuestro querido Chiquito De La Calzada
#!/bin/env ruby
# encoding: utf-8
# Autor: Dalboz
chiquitoArray = ["ayayayai", "manco", "deskiciado", "forastero", "fistro","torpedo","pecador","sexuarl","por la gloria de mi madre","diodeno","condemor","jarl","ese que llega","pupita","la caidita","te voy a borrar el cerito","al ataquerl","a wan","a peich","a gramenawer","no puedor","hasta luego Lucas","mamaar","apetecan","caballo blanco caballo negroorl","ese pedazo de","benemeritaar","te va a hasé pupitaa","de la pradera", "ese hombree", "quietooor", "qué dise usteer", "no te digo trigo por no llamarte Rodrigor", "está la cosa muy malar", "tiene musho peligro","ahorarr","diodenoo","amatomaa","me cago en tus muelas","llevame al sircoo", "papaar papaar", "se calle ustée", "va usté muy cargadoo"]
def generalinea(chiquitoArray)
nPalabras = rand(12)+4
linea = ""
for num in 1...nPalabras
@kubrick06010
kubrick06010 / tell.sh
Created July 9, 2017 23:04
Show Active Connections to “Internet Sharing” on OSX
# Try using arp, selecting the bridge that OSX created for internet sharing
arp -i bridge100 -a
<script id="f5_cspm">
(function() {
var f5_cspm = {
f5_p: 'CFABBCFADAIABAAEKNAAAABAACAAAAAAEABAANAAIICJAAAADAAAAMAAANGFAAAA',
setCharAt: function(str, index, chr) {
if (index > str.length - 1)
return str;
return str.substr(0, index) + chr + str.substr(index + 1);
},
get_byte: function(str, i) {
// From Richard D. James site on warp 22-07-2017
buy=["Cherish","Possess","Own","Casket","Bag","Acquire","Nab","Have it!","Need this","I must have this","If we can swear then I must fucking have this","Transfer HQ to my drive",".wav > HD","I need more than 128kbps","I need the fucking .wav","I need the .wav","I have to have this","Give money to afx","No guilty conscience","Low bit rate is not so good for your ears","Part with money","Partly transfer my wealth"],random_buy

Capturing your Desktop / Screen Recording

Contents

Here are a few solutions for capturing your desktop and recording a video of your screen with ffmpeg. (A Chinese version of this page is [[Capture/Desktop中文版本|also available]].)

@kubrick06010
kubrick06010 / cpi.sh
Last active July 23, 2019 17:37
Consumer Price Index Data
# CPI-All Urban Consumers (Current Series) CUUR0000SA0
curl -i -X POST -H 'Content-Type: application/json' -d '{"seriesid":["CUUR0000SA0"],"startyear":"2017", "endyear":"2019"}' https://api.bls.gov/publicAPI/v2/timeseries/data/
@kubrick06010
kubrick06010 / macOS.sh
Last active March 10, 2018 16:33 — forked from neewy/macOS.sh
How to install dependencies for Iroha, clone and build the project in development branch
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/homebrew/install/master/install)" # if you dont't have brew installed
brew install cmake boost postgres grpc autoconf automake libtool golang libpqxx rapidjson
# check boost linking
git clone https://github.com/hyperledger/iroha -b develop
cd iroha
cmake -H. -Bbuild -DBoost_DEBUG=ON # watch for config errors !
cmake --build build -- -j2 #Check number of logical cores with sysctl -n hw.ncpu and use this number
04686f5e1d81c1d0e3742692c9251f77f10b498d3423d14d366528b51d9517a61f216dcb15e460645218759cd1260e34adaa34263c5f40cf6675dfe53a4e71e99d;neewy
@kubrick06010
kubrick06010 / grepit.sh
Created April 1, 2018 15:53
Grep file extensions over directories, store the results into a variable, then copy those files to new destination
#!/bin/sh
# Grep file extensions over directories, store the results into a variable, then copy those files to new destination
result=$(find iPod_Control/Music/ | grep --null ".mov\|.mp4")
#echo $result
cp $result /Users/dalboz/Desktop/rs
@kubrick06010
kubrick06010 / rot13.pl
Created June 2, 2018 20:11
ROT13 conversion on the fly using Perl
#!perl
# Rot13 encoder / decoder
while (<STDIN>)
{
$_ =~ tr/N-ZA-Mn-za-m/A-Za-z/;
print $_;
}