Skip to content

Instantly share code, notes, and snippets.

View DavidToca's full-sized avatar
🕶️
testing

David Toca DavidToca

🕶️
testing
View GitHub Profile
# Debian Wheezy - Fixing HeartBleed
# Installing 1.0.1e-2+deb7u4
# http://www.corsac.net/?rub=blog&post=1565
# https://security-tracker.debian.org/tracker/DSA-2896-1
#
# As pointed out, not the best secured way but fast. Please use 'apt-get && apt-get upgrade' for a more secure system.
wget http://security.debian.org/pool/updates/main/o/openssl/libssl1.0.0-dbg_1.0.1e-2+deb7u5_amd64.deb
wget http://security.debian.org/pool/updates/main/o/openssl/openssl_1.0.1e-2+deb7u5_amd64.deb
wget http://security.debian.org/pool/updates/main/o/openssl/libssl1.0.0_1.0.1e-2+deb7u5_amd64.deb
@DavidToca
DavidToca / 0_reuse_code.js
Created July 16, 2014 15:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@DavidToca
DavidToca / install_opencv.sh
Created September 16, 2014 19:07
install opencv on linux 12
git clone https://github.com/Itseez/opencv.git
mv -r ~/Downloads/opencv-2.4.9 opencv
mv ~/Downloads/opencv-2.4.9 opencv
cd opencv
mkdir release
cd release
cmake ../
make
sudo make install
@DavidToca
DavidToca / gist:06b5163b04eacbeb2563
Created October 3, 2014 15:18
The Researcher's Bible
The Researcher's Bible
Alan Bundy, Ben du Boulay, Jim Howe and Gordon Plotkin 1985
Including contributions by Graeme Ritchie and Peter Ross.
Thanks to Anna Chekovsky, who has made a Swedish translation of the Researcher's Bible and to Artem Delik, who has made a Bulgarian translation.
This version: 9 November 2004.
Abstract
@DavidToca
DavidToca / instructions.md
Created November 5, 2014 15:31
Install opencv 2.9.4 with python support

upgrate

sudo apt-get update sudo apt-get upgrade

install dependencies

sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen3-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev default-jdk ant libvtk5-qt4-dev

@DavidToca
DavidToca / gist:30faf39e41443f1feb53
Created January 19, 2015 16:10
learning resources front end
@DavidToca
DavidToca / about.md
Last active September 26, 2015 18:48 — forked from blaix/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.

@DavidToca
DavidToca / colors.xml
Created December 11, 2011 01:09
a resource file for android apps containing different colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#FFFFFF</color>
<color name="yellow">#FFFF00</color>
<color name="fuchsia">#FF00FF</color>
<color name="red">#FF0000</color>
<color name="silver">#C0C0C0</color>
<color name="gray">#808080</color>
<color name="olive">#808000</color>
<color name="purple">#800080</color>
@DavidToca
DavidToca / colors.xml
Created December 11, 2011 02:57
a resource file for android apps containing different colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="White">#FFFFFF</color>
<color name="Ivory">#FFFFF0</color>
<color name="LightYellow">#FFFFE0</color>
<color name="Yellow">#FFFF00</color>
<color name="Snow">#FFFAFA</color>
<color name="FloralWhite">#FFFAF0</color>
<color name="LemonChiffon">#FFFACD</color>
<color name="Cornsilk">#FFF8DC</color>
@DavidToca
DavidToca / lets
Created March 16, 2012 16:43 — forked from afgomez/lets.sh
Simple productivity booster
#!/bin/bash
# lets. A productivity booster
# based on ideas from https://gist.github.com/605292
#
# Copy your /etc/hosts to /etc/hosts.play and create a new one called /etc/hosts.work with a list of blocked sites
# Usage: sudo lets [play|work]
if [ $# = 0 ]
then