Skip to content

Instantly share code, notes, and snippets.

View waldyrious's full-sized avatar

Waldir Pimenta waldyrious

View GitHub Profile
@waldyrious
waldyrious / css-inspector
Last active August 29, 2015 14:08
helper css to inspect the structure of mediawiki skins
div, li, ul {
padding: 5px !important;
margin: 5px !important;
/*
position: unset !important;
float: unset !important;
top: unset !important;
left: unset !important;
width: unset !important;
height: unset !important;
Verifying that +waldyrious is my openname (Bitcoin username). https://onename.com/waldyrious
@waldyrious
waldyrious / mwclient-logo.svg
Last active August 29, 2015 14:25
mwclient logo proposal
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@waldyrious
waldyrious / CMakeLists.txt
Last active October 19, 2020 16:09
VTK Hello World: display a 2D image
cmake_minimum_required (VERSION 3.0)
project(VtkJpegViewer)
set(CMAKE_PREFIX_PATH "C:/Path/To/vtk-6.3.0")
find_package(VTK 6 REQUIRED)
include(${VTK_USE_FILE})
@waldyrious
waldyrious / minimal.svg
Last active March 15, 2016 13:04
A very basic SVG template
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@waldyrious
waldyrious / gist:86cc5a8b947e75d941383f481ace7601
Created August 22, 2016 22:15 — forked from joshhartman/randomPassword.php
Human Readable Password Generator
<?php
function randomPassword($len = 8){
/* Programmed by Christian Haensel
** christian@chftp.com
** http://www.chftp.com
**
** Exclusively published on weberdev.com.
** If you like my scripts, please let me know or link to me.
** You may copy, redistribute, change and alter my scripts as
** long as this information remains intact.
@waldyrious
waldyrious / tldr-pages-cla.md
Last active May 21, 2024 20:14
tldr-pages contributor agreement

tldr-pages contributor agreement

(1) I assert that any past, present and future contributions I make to the tldr-pages project are my own work, and that I have the right to license them.

(2) I agree to license all my contributions to the tldr-pages project under the terms of the license included in the tldr-pages repository I’m contributing to.

(3) I grant the tldr-pages organization a license to distribute my contributions under any open content license compliant with the Open Definition [a], or any open source software license approved by the Open Source Initiative [b], as applicable.

a. http://opendefinition.org/licenses

@waldyrious
waldyrious / tldr.sh
Last active December 20, 2018 18:10
simple shell client for tldr pages
#!/bin/bash
# shellcheck disable=SC2002
# 1) Put this file into your local clone of git://github.com/tldr-pages/tldr:
# curl -L https://gist.github.com/waldyrious/805d6357fa0b55135354ea4b996e0818/raw/ -o path/to/tldr-repo/tldr.sh
# 2) Mark it as executable:
# chmod +x path/to/tldr-repo/tldr.sh
# 3) symlink it into /usr/local/bin:
# sudo ln -s /absolute/path/to/tldr-repo/tldr.sh /usr/local/bin/tldr

Excerpts from this discussion: https://news.ycombinator.com/item?id=12818016

Take this strawman for instance, how could you find the bug in the following code without the accompanying comment?

// Print every other line of the array to the console
for (var i = 0; i < myStringArray.length; i++) {
    console.log(myStringArray[i]);
}
$ brew audit --strict tldr
==> Installing or updating 'rubocop' gem
Building native extensions. This could take a while...
ERROR: Error installing rubocop:
ERROR: Failed to build gem native extension.
current directory: /home/waldyrious/.gem/ruby/2.3.0/gems/rainbow-2.2.1/ext
/usr/bin/ruby2.3 mkrf_conf.rb
current directory: /home/waldyrious/.gem/ruby/2.3.0/gems/rainbow-2.2.1/ext