This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| FFMPEG=$(which ffmpeg) | |
| set -e | |
| if [[ $# -lt 1 ]]; then | |
| dest=${HOME}/Videos/$(date --iso-8601=second)-desktop.mp4 | |
| else | |
| dest=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- cofing: utf-8 -*- | |
| from __future__ import print_function | |
| import sys, os | |
| import jinja2 | |
| import urlparse | |
| template_str = '''<?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| {%- for url in urls %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| if [[ $# -lt 4 ]]; then | |
| echo '-i $1 -ss $2 -t $3 <output>' | |
| exit 0 | |
| fi | |
| ffmpeg -i $1 -ss $2 -t $3 -codec:a libvorbis -b 128k $4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global user.name "junmakii" | |
| git config --global user.email "junmakii@gmail.com" | |
| git config --global credential.helper 'cache --timeout=360000' | |
| gitadd() { | |
| git add . | |
| git add -u . | |
| git commit -m "$(date --rfc-2822)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| MYSQL_ROOT_PASSWORD="" | |
| MYSQL_CMD="mysql -u root --password=${MYSQL_ROOT_PASSWORD}" | |
| database_name="test_wordpress" | |
| host="localhost" | |
| username="wp_junmakii" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Desktop Entry] | |
| Name=xeyes | |
| GenericName=Text Editor | |
| GenericName[ja]=ウェブ・ブラウザ | |
| Comment=X demo | |
| Comment[ja]=X のデモ | |
| MimeType=text/plain;text/x-tex; | |
| Exec=xeyes | |
| Icon=xeyes | |
| Type=Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import os, sys, json | |
| import jinja2 | |
| import argparse | |
| def parse_args(argv): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('-j', '--json', nargs='+', default=[], action='store') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import os, sys, json | |
| import jinja2 | |
| import argparse | |
| def parse_args(argv): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('-j', '--json', nargs='+', default=[], action='store') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import os, sys, json | |
| import jinja2 | |
| import argparse | |
| def parse_args(argv): | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('-j', '--json', nargs='+', default=[], action='store') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| from __future__ import print_function | |
| import os, sys, time, urllib2, feedparser, sqlite3, json, datetime | |
| import tweepy | |
| import logging | |
| logging.basicConfig(level='DEBUG') | |
| logger = logging.getLogger(__name__) |