This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 1 ] ; then | |
echo "USAGE: $0 <gpg-key-id>" | |
exit 1; | |
fi | |
KEY_ID=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --keyserver pool.sks-keyservers.net --recv-key 0x37F0407D | |
gpg: requesting key 37F0407D from hkp server pool.sks-keyservers.net | |
gpg: key 37F0407D: "Israel Buitron <[email protected]>" not changed | |
gpg: Total number processed: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ gpg --list-key | |
/Users/israel/.gnupg/pubring.gpg | |
-------------------------------- | |
pub 4096R/37F0407D 2013-01-01 | |
uid Israel Buitron <[email protected]> | |
gpg: conversion from 'utf-8' to 'US-ASCII' failed: Illegal byte sequence | |
uid Israel Buitron (Correo electrónico en el IPN) <[email protected]> | |
uid Israel Buitron <[email protected]> | |
sub 4096R/0D6D8EA7 2013-01-01 [expires: 2016-01-01] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpg --gen-key | |
gpg (GnuPG/MacGPG2) 2.0.22; Copyright (C) 2013 Free Software Foundation, Inc. | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Please select what kind of key you want: | |
(1) RSA and RSA (default) | |
(2) DSA and Elgamal | |
(3) DSA (sign only) | |
(4) RSA (sign only) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
char str[] = "1,2,3,4,5"; | |
char *tmp = NULL; | |
for(int i=0; (tmp = strsep(&str, ",")) != NULL; ++i) { | |
printf("%s\n", tmp); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if((x&1) == 0) { | |
// x is even | |
} else { | |
// x is odd | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
// Compilation command: | |
// gcc -std=c11 lab.c | |
// | |
// References: | |
// - http://en.wikipedia.org/wiki/Find_first_set | |
int main(int argc, char const *argv[]) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{equation} | |
\begin{split} | |
f : | |
\mathbb{R} & \to \mathbb{R}\\ | |
x & \mapsto \frac{\sin x}{x} | |
\end{split} | |
\end{equation} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android |