Skip to content

Instantly share code, notes, and snippets.

View neoneo40's full-sized avatar

neo neoneo40

  • Seoul, Korea
View GitHub Profile
@neoneo40
neoneo40 / yosemite ntfs read+write.txt
Created November 5, 2015 21:12 — forked from bjorgvino/yosemite ntfs read+write.txt
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
-------------------------------------------------------------------------------------------
REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2015/07/08 23:26
-------------------------------------------------------------------------------------------
NOTES
-------------------------------------------------------------------------------------------
AppleScript is a rather peculiar scripting language to learn.
@neoneo40
neoneo40 / get_title_and_url.applescript
Created October 26, 2015 12:19 — forked from vitorgalvao/Get Title and URL.applescript
Applescript to get frontmost tab’s url and title of various browsers.
# Keep in mind that when asking for a `return` after another, only the first one will be output.
# This example is meant as a simple starting point, to show how to get the information in the simplest available way.
# Google Chrome
tell application "Google Chrome" to return URL of active tab of front window
tell application "Google Chrome" to return title of active tab of front window
# Google Chrome Canary
tell application "Google Chrome Canary" to return URL of active tab of front window
tell application "Google Chrome Canary" to return title of active tab of front window
# Chromium
@neoneo40
neoneo40 / GetTitle.py
Created October 26, 2015 09:58 — forked from gordonmeyer/GetTitle.py
This script is for use with Keyboard Maestro, as described at: http://www.gordonmeyer.com/2013/01/keyboard-maestro-make-link-with-title-from-clipboard.html It outputs the title of a webpage. The URL is passed via a Keyboard Maestro variable. This is a rather crude, but reliable, method of getting the title and does not require the installation o…
#! /usr/bin/python
"""
brute force get title of web page
usage: getTitle.py url
Gordon Meyer January 1, 2013
www.gordonmeyer.com
"""
# modules used
import urllib2, urlparse, string, os
@neoneo40
neoneo40 / toc.py
Created October 26, 2015 03:07 — forked from jmjeong/toc.py
markdown toc generator
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# markdown toc generator, v1.8
#
# Jaemok Jeong, 2014/10/27
from AppKit import NSPasteboard, NSArray
import re
import argparse
@neoneo40
neoneo40 / How_to_copy_filepath_in_mac.md
Last active October 24, 2015 18:33
How to copy filepath in mac

How to copy filepath in mac

  • osx - How to tell full path of file on Mac? - Super User
  • 여기 방법 써봤지만 그냥 복사하고 text만 입력할 수 있는 곳에 붙여넣기 하면 자동으로 file path만 남네..
  • 굳이 file path를 얻기 위해서 고생할 필요없다..!!
  • 지금까지 괜히 파일 정보 열어서 일일이 path를 복사했는데 다 부질없는 짓이었다..
  • 단, 파일 정보를 복사했으니까 text만 입력할 수 있는 곳에 입력해야 파일이 완전히 복사되는 것을 막을 수 있다.
  • Remove Styles로 붙여넣기 하면 되나 그냥 text만 입력할 수 있는 곳에 하는게 더 빠름... 아니면 라이브러리 열어서 선택하든가.. 자주 안 쓰니까. ok!!
@neoneo40
neoneo40 / file_sig.py
Last active October 26, 2015 11:52
packet analysis
import os
import magic
with magic.Magic() as m:
path = '/Users/re4lfl0w/Documents/_tmp/2/'
for ele in os.listdir(path):
ele = os.path.join(path, ele)
print('{} - {}'.format(os.path.basename(ele), m.id_filename(ele)))
@neoneo40
neoneo40 / requests_get.py
Created October 19, 2015 11:00
requests.get
# -*- coding: utf-8 -*-
import requests
url = 'http://www.lezhin.com/'
resp = requests.get(url)
print(resp.text)
@neoneo40
neoneo40 / Combinate_user_pass_in_python.md
Last active October 7, 2015 00:22
Combinae user, pass in python

list로 있을 때 조합 구하기

user = ['root', 'manager']
pass_ = ['123',
'456',
'asd',
'password',
'admin']