Skip to content

Instantly share code, notes, and snippets.

View waldyrious's full-sized avatar

Waldir Pimenta waldyrious

View GitHub Profile
@waldyrious
waldyrious / CMakeLists.txt
Created February 2, 2017 13:02
Patched CMakeLists.txt for QuaZIP, as described in https://sourceforge.net/p/quazip/patches/29/
project(QuaZip)
cmake_minimum_required(VERSION 2.6)
# CMP0042: Explicitly acknowledge MACOSX_RPATH
# (introduced in CMake 2.8.12, enabled by default in CMake 3.0,
# and producing a warning when unset since 3.7.1)
cmake_policy(SET CMP0042 NEW)
option(BUILD_WITH_QT4 "Build QuaZip with Qt4 no matter if Qt5 was found" OFF)
$ 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

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]);
}
@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
@waldyrious
waldyrious / tldr-pages-cla.md
Last active March 17, 2025 17:59
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 / 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
** [email protected]
** 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 / minimal.svg
Last active March 15, 2016 13:04
A very basic SVG template
Loading
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 / mwclient-logo.svg
Last active August 29, 2015 14:25
mwclient logo proposal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying that +waldyrious is my openname (Bitcoin username). https://onename.com/waldyrious