Skip to content

Instantly share code, notes, and snippets.

@dtinth
Created November 16, 2014 14:36
Show Gist options
  • Save dtinth/649084c72af81f62aacc to your computer and use it in GitHub Desktop.
Save dtinth/649084c72af81f62aacc to your computer and use it in GitHub Desktop.
BCBK5

Session: Let's Jailbreak Your iOS Device

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

เพื่ออะไร?

  • ลงแอพที่ Apple ไม่ให้อยู่บน App Store
    • คือแอพที่ใช้คำสั่งที่แอปเปิลไม่อนุญาตให้แอพธรรมดาใช้ (เป็นคำสั่งที่ iOS เอาไว้ใช้ภายใน)
  • ปรับแต่งเครื่องด้วย Tweak

ความเข้าใจผิด

  • เจลเบรกผิดกฏหมาย
    • การเจลเบรกคือการ circumvent ระบบ DRM ที่ทำให้รันโค้ดจากภายนอกไม่ได้
    • หลายประเทศไม่มีกฏหมายที่ห้าม circumvent ระบบ DRM
    • บางประเทศมีกฏหมายนี้
แต่มีข้อยกเว้นสำหรับการ Jailbreak
    • ไม่รู้เมืองไทยมีหรือเปล่า
  • คนเจลเบรกคือ
พวกใช้แอพเถื่อน
    • เจลเบรกแล้วลงแอพเถื่อนได้จริงแต่ชุมชนไม่สนับสนุนเรื่องนี้
    • Tweak หลายตัวบน Cydia ไม่ฟรีด้วย
  • เจลเบรกแล้วหมดประกันทันที
    • บางประเทศมีกฏหมายว่าไม่สามารถยกเลิกประกันเพราะเจลเบรกได้
    • ไม่รู้เมืองไทยมีหรือเปล่า

แหล่งข้อมูล

ข้อเสีย?

  • Tweak สามารถยุ่งกับข้อมูลในแอพอะไรก็ได้
    • อาจจะเสี่ยงต่อ Malware (ถ้าลง Tweak โดยไม่ดูดีๆ หรือลง Tweak เถื่อน)
    • แบตอาจจะลดเร็วขึ้น (ถ้าลง Tweak จนมากเกินไป)

Tweak ที่ผมใช้

  • UntetheredHeySiri
  • SmartTap
  • SwypeSelection
  • CCSettings
  • Zappelin
  • Activator

Session: .vimrc [Vim talk part 1.5]

My .vimrc

https://github.com/dtinth/.vimrc

Resources

Plugins

  • Vundle
  • Airline
  • Arpeggio
  • CtrlP
  • Vinegar
  • Emmet
  • Surround
  • EasyMotion
  • Reveal in Finder
  • smartgf
  • smartpairs

Sometimes, just plugins are not enough…

Functions

Definition

function! FunctionName()
  echo 'Hello world'
  echo 'I am a useless function!'
endfunction

Invocation from command

:call FunctionName()

Autocommand

Runs a command when something happens. See the :help for more info. Here are the most common use cases.

Run on file open

autocmd BufNewFile,BufRead *.md set sw=4 ts=4 noet

When opening a .md file, set shift width and tabstop to 4, and use tabs for indent (no expanding to spaces).

Run on file type change

autocmd FileType javascript call MyJSHelper()

Invoke the function MyJSHelper when opening a JavaScript file.

Example: filetype-based chords.

Mapping

  • nmap
  • imap
  • vmap
  • nnoremap
  • inoremap
  • vnoremap
let mapleader = " "

nmap <leader>a <leader><leader>F
imap <up>      <nop>
vmap <leader>w <c-y>,

See the :help file!

Final words

Sometimes, just tweaking Vim is not enough…

Configure your environment in a way that maximizes your productivity!

  • Operating system
  • Shell
  • tmux
  • Keyboard (for example, caps lock for ctrl or trying an alternate layout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment