Skip to content

Instantly share code, notes, and snippets.

View klashxx's full-sized avatar
💭
I may be slow to respond.

Juan Diego Godoy Robles klashxx

💭
I may be slow to respond.
View GitHub Profile
@klashxx
klashxx / README.rst
Created October 22, 2015 17:25 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

Lorem ipsum ad his scripta blandit partiendo, eum fastidii accumsan euripidis in, eum liber hendrerit an. Qui ut wisi vocibus suscipiantur, quo dicit ridens inciderint id. Quo mundi lobortis reformidans eu, legimus senserit definiebas an eos. Eu sit tincidunt incorrupte definitionem, vis mutat affert percipit cu, eirmod consectetuer signiferumque eu per. In usu latine equidem dolores. Quo no falli viris intellegam, ut fugit veritus placerat per.
Ius id vidit volumus mandamus, vide veritus democritum te nec, ei eos debet libris consulatu. No mei ferri graeco dicunt, ad cum veri accommodare. Sed at malis omnesque delicata, usu et iusto zzril meliore. Dicunt maiorum eloquentiam cum cu, sit summo dolor essent te. Ne quodsi nusquam legendos has, ea dicit voluptua eloquentiam pro, ad sit quas qualisque. Eos vocibus deserunt quaestio ei.
Blandit incorrupte quaerendum in quo, nibh impedit id vis, vel no nullam semper audiam. Ei populo graeci consulatu mei, has ea stet modus phaedrum. Inani oblique ne has, duo et veri
@klashxx
klashxx / merge.sql
Last active November 21, 2016 16:13
MERGE example (oracle)
MERGE INTO tab D
USING (SELECT 99999 as id_c1,
SYSDATE as c2,
'klashxx' as c3,
'test' as c4,
'test' as c5,
'test' as c6,
'not_matched' as c7
FROM DUAL) S
ON (D.id_c1 = S.id_c1)
@klashxx
klashxx / osx-for-hackers.sh
Created November 17, 2015 20:38 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@klashxx
klashxx / bsdgames-osx.rb
Created November 18, 2015 20:18 — forked from ctdk/bsdgames-osx.rb
A homebrew formula for installing bsdgames-osx. For now, just plunk it into /usr/local/Library/Formula/ and run "brew install bsdgames-osx". Tested successfully in MacOS X 10.7 and 10.8. If it fails to compile, try adding the "--with-clang" option. Some versions of clang will also require CFLAGS="-std=c11" to compile correctly.
require 'formula'
class BsdgamesOsx < Formula
homepage 'https://github.com/ctdk/bsdgames-osx'
url 'https://github.com/ctdk/bsdgames-osx/archive/bsdgames-osx-2.19.3.tar.gz'
sha1 '31013cbc8fbad71f1e3e0b9b85fd7c943219a99b'
head 'https://github.com/ctdk/bsdgames-osx.git'
version '2.19.3'
depends_on :bsdmake => :build
---
- name: Test split
hosts: localhost
gather_facts: false
vars:
- svnpath: trunk/Configuracion/App_
tasks:
- name: Let's split
debug: var=item
with_items: "{{ svnpath.split('/', 1) }}"
#!/usr/bin/python
import os
import paramiko
key = paramiko.RSAKey.from_private_key_file(
os.path.expanduser('~/.ssh/id_rsa_priv'))
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
#!/bin/bash
set -e
err_report() {
echo "Error on line $1"
}
trap 'err_report $LINENO' ERR

Keybase proof

I hereby claim:

  • I am klashxx on github.
  • I am klashxx (https://keybase.io/klashxx) on keybase.
  • I have a public key whose fingerprint is CDEF E957 909C 3B03 B863 0CC0 9E3C 1B76 33ED E676

To claim this, I am signing this object:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Taskwarrior
"""
__version__ = '0.1'
TIMEOUT = 15