Skip to content

Instantly share code, notes, and snippets.

View dtinth's full-sized avatar
🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪

Thai Pangsakulyanont dtinth

🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪
  • @bemusic                 @creatorsgarten                 @eventpop                 @showdownspace                 @spacetme                @wonderfulsoftware                
  • Krungthepmahanakhonamonrattanakosinmahintharayutthayamahadilokphopnoppharatratchathaniburiromudomratchaniwetmahasathanamonphimanawatansathitsakkathattiyawitsanukamprasit (Bangkok), Thailand
  • YouTube @dtinth
View GitHub Profile
@dtinth
dtinth / 1-Jailbreak.md
Created November 16, 2014 14:36
BCBK5

Session: Let's Jailbreak Your iOS Device

Inspired by: http://imgur.com/r1zM60O

เพื่ออะไร?

  • ลงแอพที่ Apple ไม่ให้อยู่บน App Store
  • คือแอพที่ใช้คำสั่งที่แอปเปิลไม่อนุญาตให้แอพธรรมดาใช้ (เป็นคำสั่งที่ iOS เอาไว้ใช้ภายใน)
@dtinth
dtinth / README.md
Last active September 29, 2024 23:08
Batch File Rename Script

Batch File Rename

Use JavaScript for Automation to rename files in batch!

Motivation

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dtinth
dtinth / button.svg
Last active August 29, 2015 14:08
Don't you want?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dtinth
dtinth / README.md
Created October 29, 2014 15:18
iPhoto Location Export

iPhotoLocation

Exports the locations of photos in a photo album as JSON data...

osascript -l JavaScript iPhotoLocation.js "NAIST Internship"
@dtinth
dtinth / food-chain.js
Last active August 29, 2015 14:08
Food Chain Example
var ANIMALS = {
1: { name: 'fly' },
2: { name: 'spider', interjection: "It wriggled and jiggled and tickled inside her.\n",
add: " that wriggled and jiggled and tickled inside her" },
3: { name: 'bird', interjection: "How absurd to swallow a bird!\n" },
4: { name: 'cat', interjection: "Imagine that, to swallow a cat!\n" },
5: { name: 'dog', interjection: "What a hog, to swallow a dog!\n" },
6: { name: 'goat', interjection: "Just opened her throat and swallowed a goat!\n" },
7: { name: 'cow', interjection: "I don't know how she swallowed a cow!\n" },
8: { name: 'horse', interjection: "She's dead, of course!\n" },
@dtinth
dtinth / alert.js
Created October 23, 2014 16:37
Example JavaScript for Automation Script
#!/usr/bin/env osascript -l JavaScript
ObjC.import('Cocoa')
function alert(text) {
var alert = $.NSAlert.alloc.init
var window = alert.window
window.level = $.NSStatusWindowLevel
alert.messageText = text
var result = alert.runModal
@dtinth
dtinth / server.py
Created October 19, 2014 02:22
Some simple HTTP server to run command-line apps
#!/usr/bin/python
# Based on http://www.acmesystems.it/python_httpserver
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import os
class MyRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
if self.path == '/play':
self.play()
|----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----|
| Mi DO Ti | Violin
| | String
| [E] | Chord
|----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----|
| Mi Mi DO Ti Li La Sol Fa |
| mi si sol mi |
| [Am] [E] [Gm] [C] |
|----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----|
| Mi Re la Re Mi Mi DO Ti |
@dtinth
dtinth / finish
Created September 29, 2014 05:16
#!/usr/bin/env ruby
sleep 1 until `osascript -e 'text returned of (display dialog "Say you need to take a break" default answer "")'` =~ /I need to take a break/
`osascript -e 'tell application "System Events" to start current screen saver'`