Skip to content

Instantly share code, notes, and snippets.

View OzTamir's full-sized avatar

Oz Tamir OzTamir

View GitHub Profile

Task Management Assistant - System Prompt

You are an intelligent task management assistant that analyzes WhatsApp conversations and Todoist tasks to identify missing action items. Your goal is to help users capture commitments and action items that haven't been added to their task list yet.

You should maintain a precise, analytical tone. Be conservative in your analysis - it is better to miss an action item than to create duplicate or unnecessary tasks.

Language Note: The user's WhatsApp messages are primarily in Hebrew. You should process and understand Hebrew text naturally and return task content in the same language as the source conversation.


@OzTamir
OzTamir / cubes.py
Created December 5, 2021 13:22
CuBus - Display the time until the bus gets to the stop
#!/usr/bin/python
# -*- coding:utf-8 -*-
import math
import logging
import time
import requests
from PIL import Image,ImageDraw,ImageFont
from waveshare_epd import epd2in13_V2
@OzTamir
OzTamir / sport5.sh
Created August 23, 2020 16:35
Launch "Sport 5" channel on CellcomTV on MiBox
UP=19
DOWN=20
LEFT=21
RIGHT=22
# Replace "XX:XX:XX:XX:XX:XX" with the MAC address of you Mi Box
IP=$(arp -n | grep "XX:XX:XX:XX:XX:XX" | cut -d " " -f1)
echo "Connecting..."
adb connect $IP
@OzTamir
OzTamir / summary.sh
Last active January 28, 2017 11:06
Summarize your work in a git repository
#!/usr/bin/env bash
###########
# summary.sh
# Summarize your work in a git repository
# Author: Oz Tamir, 30/11/2016, [email protected]
# usage: ./summery.sh FIRSTNAME LASTNAME
############
@OzTamir
OzTamir / generate_primes.py
Created November 24, 2016 09:33
Find the first N primes
#!/usr/bin/env python
import time
def is_prime(number):
''' Check if number is a prime number '''
if number >= 2:
for y in range(2,number):
if number % y == 0:
return False
else:
@OzTamir
OzTamir / breakpoint.sublime-snippet
Last active November 22, 2016 09:00
Sublime Text Snippets for JavaScript
<snippet>
<content><![CDATA[console.log(${1: ">>> This is a debug message from $TM_FILENAME:$TM_LINE_NUMBER <<<< "});
debugger;]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cdbg</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
<description>console.log() and a breakpoint</description>
</snippet>
@OzTamir
OzTamir / creep.sh
Created August 22, 2016 10:38
Make an OSX machine say (out-load!) randomly choosen creepy sentences
#!/bin/sh
random=$(( ( RANDOM % 10 ) + 1 ))
if [ $random -eq 1 ]
then
say -v Whisper "I see you"
elif [ $random -eq 2 ]
then
say -v Hysterical "You can't stop me now"
@OzTamir
OzTamir / projects.md
Created May 16, 2016 07:06
Projects I want to write

Programming Projects - My bucket list

This list includes all the projects I want to write and implement at some point. Order of the items is meaningless.


  • Writing a filesystem
  • Creating a programming language
  • Writing a C compiler
@OzTamir
OzTamir / power_cycle.sh
Created May 14, 2016 08:41
power_cycle.sh: reboot a HOTBOX router
#!/usr/bin/env bash
###############################################
# power_cycle.sh: reboot a HOTBOX router #
# Author: Oz Tamir ([email protected]) #
###############################################
USERNAME=''
PASSWORD=''
@OzTamir
OzTamir / superb.theme.bash
Created April 4, 2016 16:01
A superb bash theme (used with bash-it)
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX="${cyan}(${green}"
SCM_THEME_PROMPT_SUFFIX="${cyan})"
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${green}✓"
function prompt_command() {
PS1="${blue}\T ${green}\u ${reset_color}${white}\w ${reset_color}$(scm_prompt_info) ${bold_blue}${reset_color}> ";
}