This file contains 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
BACKUP YOUR EXISTING DB IF ANY!!! | |
Download your Twitter Archive, extract -- get a fresh one. | |
Upload data/js/tweets to your server. | |
Login to server and execute the following commands: | |
mv tweets tweets_src | |
mkdir tweets | |
cd tweets |
This file contains 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
NOTE -- You need eyeD3 python library and id3lib (C++ library) for the commands eyeD3 and id3info respectively. | |
find -name '*.mp3' | while IFS= read -r file; do | |
artists_org=$(id3info "$file" | grep TPE1 | awk -F ': ' ' { print $2 }') | |
artists_new=$(echo $artists_org | sed 's@/@, @g' | sed 's/ *$//g') | |
eyeD3 -a "$artists_new" "$file" | |
done |
This file contains 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 | |
# Gitolite-Trac post-receive hook | |
# Script written by Nilesh Govindrajan; http://nileshgr.com | |
# Updated by giotti to support multiple repositories. | |
# Assumptions: | |
# 1: all trac environments are saved under one common directory | |
# defined in tracenv. e.g. /path/to/all/my/trac/envs | |
# 2: all repositories of an environment follow the naming-pattern | |
# <environment><delimeter><repository name>[<delimeter><repository name continued>...], | |
# e.g. someproject-somerepository, or someproject-somerepository-with-extra-text |
This file contains 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/python2 | |
# Go to dev.twitter.com/apps and create a new app; put the information here. | |
# You need the tweepy library. | |
consumer_secret = '' | |
consumer_key = '' | |
access_token_key = '' | |
access_token_secret = '' |
NewerOlder