Skip to content

Instantly share code, notes, and snippets.

@timoc
timoc / Makefile
Created April 16, 2021 12:41 — forked from scastiel/Makefile
Resources for eBook creating using Pandoc
all: pdf epub kindle html examples
BOOK_TITLE = A\ React\ Developer’s\ Guide\ to\ Hooks\ -\ Sebastien\ Castiel
dist:
@mkdir -p dist
pdf: dist/${BOOK_TITLE}.pdf
@echo '✅ PDF'
@timoc
timoc / Pipfile
Created January 23, 2021 11:37 — forked from dogtopus/Pipfile
Brother P-Touch PT-P300BT bluetooth driver python
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pybluez = "*"
pillow = "*"
packbits = "*"
@timoc
timoc / ifaddrs.h
Last active March 13, 2017 08:19
Single include file based on another fix used to solve the ifaddrs.h missing problem with termux on android. This is a problem when building pyzmq/libzmq FYI:both will fail for other diferent reasons, but this is a usefull fix. I do not know anything about the code quality, i had to fix untyped mallocs, but i guess they get freed somewhere right…
/*
* Copyright (c) 1995, 1999
* Berkeley Software Design, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
@timoc
timoc / installer.sh
Created October 4, 2015 10:06 — forked from tahl/installer.sh
Android SDK + NDK + Eclipse and ADB Installer
#!/bin/bash
#
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 and make it easier for people that want to develop for Android using Linux.
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#I can be reached at [email protected], twitter, or linuxrandomly.blogspot.com
#Script version: 1.0.5
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."