Skip to content

Instantly share code, notes, and snippets.

@l4sh
l4sh / nodejs_install.sh
Last active January 29, 2016 05:49
Install Node.js and NPM from source
# Install dependencies (these are for Fedora, adapt to your distro)
# gcc-c++ make glibc-devel openssl openssl-devel
# Make a temporary working dir
mkdir nodebuild
cd nodebuild
# Download latest node.js source
wget http://nodejs.org/dist/node-latest.tar.gz
@l4sh
l4sh / instalacion_nodejs.sh
Last active July 12, 2016 14:38
Instalar Node.js y NPM desde fuente
# Instalar dependencias (adapta a tu distro)
# Para Fedora:
# gcc-c++ make glibc-devel openssl openssl-devel
#
# En Debian solo es necesario instalar
# build-essentiak
# Crea un directorio de trabajo temporal
mkdir nodebuild
cd nodebuild
@l4sh
l4sh / springer-free-maths-books.md
Created December 28, 2015 21:55 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@l4sh
l4sh / .emacs
Last active May 6, 2016 19:24
evil mode simple emacs config
;;; emacs configuration file
;; ---- Package management ---- ;;
(require 'package)
;; Repositories
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/"))
@l4sh
l4sh / bobp-python.md
Created March 25, 2016 14:55 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@l4sh
l4sh / init.el
Created April 11, 2016 17:43 — forked from matthewmccullough/init.el
Customize Markdown and Org-Mode Font Faces on Aquamacs Emacs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Customize Font Faces
;; http://www.emacswiki.org/emacs/CustomizingFaces
(custom-set-faces
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 2.2))))
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.7))))
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.3))))
'(org-level-1 ((t (:inherit org-level-1 :height 1.5))))
@l4sh
l4sh / aes128_example.php
Last active April 29, 2016 00:52
AES 128 CBC encription example (PHP)
<?php
/**
* AES 128 CBC encription example
*/
// Must be 64 chars long & valid hexadecimal. Store it some place safe.
$hex_key = "2cc4e0d365011b7d86b235c4e3dddee45ac3a76dca8536fe10d58d1d481d4b8b";
$key = pack('H*', $hex_key);
@l4sh
l4sh / readme.md
Last active January 30, 2017 01:14
Add Bootstrap to create-react-app

Install bootstrap

npm install bootstrap react-bootstrap -S

Import CSS & theme

Edit index.js and add the following imports

@l4sh
l4sh / update-comments-invoice.xml
Created February 18, 2017 03:25
Retail Pro 9 Invoice.xml minimal structure
<?xml version="1.0" encoding="utf-8"?>
<DOCUMENT>
<INVOICES>
<INVOICE invc_sid="123456789012345678" sbs_no="2" invc_type="0">
<INVC_COMMENTS>
<INVC_COMMENT comment_no="1" comments="Test comment" />
</INVC_COMMENTS>
</INVOICE>
</INVOICES>
</DOCUMENT>
@l4sh
l4sh / git-rm.sh
Created February 19, 2017 05:24
agregar y eliminar archivo de repo manteniendolo en el sistema de archivos
l4sh at aria in ~/tmp/mi-repo (master)
$ git status
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)
l4sh at aria in ~/tmp/mi-repo (master)
$ touch archivo