Skip to content

Instantly share code, notes, and snippets.

@kylelk
kylelk / make_folder.c
Created August 10, 2013 05:22
make_folder.c
//
// make_folder.c
//
//
// Created by Kyle on 8/9/13.
//
//
#include <stdio.h>
#include <sys/types.h>
@kylelk
kylelk / ASCII_list.c
Created August 10, 2013 06:07
ASCII_list.c
#include <stdio.h>
#define N 127
int main(void)
{
int n;
int c;
for (n=32; n<=N; n++) {
printf("%d: %c\n", n, n);
@kylelk
kylelk / strings.c
Created August 11, 2013 07:12
join two strings
#include <stdio.h>
#include <string.h>
int main()
{
char a[100], b[100];
printf("Enter the first string\n");
gets(a);
@kylelk
kylelk / join.c
Created August 20, 2013 07:59
Join
#include <stdio.h>
#include <string.h>
int main()
{
char src[50], dest[50];
strcpy(src, "This is source");
strcpy(dest, "This is destination");
strcat(dest, src);
@kylelk
kylelk / webview.py
Created August 20, 2013 08:05
python android webView
import android
droid = android.Android()
droid.webViewShow('http://www.google.com', None)
@kylelk
kylelk / divisors.py
Created August 21, 2013 22:45
Shows the number of divisors for each number less than 100. shows in bar graph format.
#
# divisors.py
#
#
# Created by Kyle Kersey on 8/19/13 4:33 PM.
#
#
b=1
d = 0
@kylelk
kylelk / kyle.asc
Created August 23, 2013 05:44
my public key
-----BEGIN PGP PUBLIC KEY BLOCK-----Version: SKS 1.1.0
mQENBFH9gEwBCACjVxOJHV8KpZ7LLFPfWKbUScjd/2dhTB/ySsUaL+xExEZ4KGCdARSUrmFp WN4p2eGOo6v8KEGkS5Sk6rxo8Q0KnjqL9RkF7gOu2CKOqaVDb/B/6eCRO/HvbSPmlu0EY1vG Tv/u2rKX1d1if7eQ8+xsaHA9AEqK51RV/knIrV10VCxxdhwTapHVLtLejxde8YS2GRGglkVx Xg4PZelWcmHMTNApCckUpQagIgWCfBzW+kEycy/KFH2Is4/pZN1wazgYODLFrZjDnzJvlWen U0r1Mz1gOLAZMgYJJwFi0cppkXjopmEToI589tATTtF7wzIyndHQWKdGOjuUnR0Y7qmbABEB AAG0IGt5bGUga2Vyc2V5IDxreWxlbGtAY29tY2FzdC5uZXQ+iQE4BBMBAgAiBQJR/YBMAhsD BgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAqphY0ltCN8bcMB/9vvW4BogcbU/iCTMFQ PMll8GCayeWxb7I0MnBEG7SoXaUd8NKyq8j0OGMVvellHxTusoogeA5Df1ysaPIiFFnoIoUq LtJfeoBX7lsTjzqnlXTzg7uDWH5NE6wR3LH5Vi+NMSbRo5tyKTKCoA77vefvfZ37BbUtuc3q pur6aJSUVSKU1Y9MjsZUfuJd3wUzeztlVLpe0J7eCTDfx3r6FiKmSM2Npgcad68Jx0vscodk /TbvAhyiA2TlTKU0TONt6Sss1irQD9674Q+SvNWkp2hln/8tZBXdTl8WOt6mBETGjzXVu6fh RuuuAujqJGijQ7M1GjL1aKcPQiT4kKz2COAouQENBFH9gEwBCACiy6ZuxvG41L15/PLsBaaN TE9xJEjsiE1chfg5Ovgd4rLUT6CouMg7v6Yy+6PW2SM/JEkx7LwgykDPRQa7z86wAfm8tzja TWJsufNcJ8hWY2f7rxz
@kylelk
kylelk / hello.s
Last active December 21, 2015 22:09
Hello world in x86
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main:
Leh_func_begin1:
pushq %rbp
Ltmp0:
movq %rsp, %rbp
Ltmp1:
subq $16, %rsp
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int socket_handle;
@kylelk
kylelk / public.asc
Last active December 21, 2015 22:09
open a file using command line arguments The file read_file.txt is the binary of the program encoded in base64. The file read_file.sig is the signature for the binary.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.13 (Darwin)
mQENBFH9gEwBCACjVxOJHV8KpZ7LLFPfWKbUScjd/2dhTB/ySsUaL+xExEZ4KGCd
ARSUrmFpWN4p2eGOo6v8KEGkS5Sk6rxo8Q0KnjqL9RkF7gOu2CKOqaVDb/B/6eCR
O/HvbSPmlu0EY1vGTv/u2rKX1d1if7eQ8+xsaHA9AEqK51RV/knIrV10VCxxdhwT
apHVLtLejxde8YS2GRGglkVxXg4PZelWcmHMTNApCckUpQagIgWCfBzW+kEycy/K
FH2Is4/pZN1wazgYODLFrZjDnzJvlWenU0r1Mz1gOLAZMgYJJwFi0cppkXjopmET
oI589tATTtF7wzIyndHQWKdGOjuUnR0Y7qmbABEBAAG0IGt5bGUga2Vyc2V5IDxr
eWxlbGtAY29tY2FzdC5uZXQ+iQE4BBMBAgAiBQJR/YBMAhsDBgsJCAcDAgYVCAIJ