Add file/asset storage handling to GIt workflows
via https://github.com/blog/2079-managing-large-files-with-git-lfs && https://github.com/blog/2079-managing-large-files-with-git-lfs
Add file/asset storage handling to GIt workflows
via https://github.com/blog/2079-managing-large-files-with-git-lfs && https://github.com/blog/2079-managing-large-files-with-git-lfs
"The gig I have as the drummer in King Crimson is one of the few gigs in rock 'n' roll where it's even remotely possible to play anything in 17/16 and stay in a decent hotel"
code @ https://github.com/scanlime/arduino-lelo-remote
via OWNI, News, Augmented : Hacke ton vagin - Revue du web
1# setup a transifex virtualenv
2virtualenv2 VENV; source VENV/bin/activate; pip install transifex-client
3
4# global config: ~/.transifexrc
5# this step can be omitted, as 'tx init' will create the file if it doesn't exist
6[https://www.transifex.com]
7username = User
8token =
9password = un54f3_p4ssw0rd!
10hostname = https://www.transifex.com
11
12# setup example project
13mkdir example; cd example
14tx init
15tx set --auto-remote https://www.transifex.com/projects/p/my-project/
16
17# get the files
18tx pull -l pt_BR
19
20# edit things
21poedit / linguist-qt4
22
23# push to transifex
24tx push -t
1# first, clone the repository
2git clone REPO REPO2
3cd REPO2
4# remove all unneeded files from this version
5git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch FILES_AND_DIRS_TO_DELETE"
6git gc --aggressive --prune=1day
7git fsck --unreachable
8# refresh the remote
9git remote rm origin
10git remote add origin ssh://HOST/REPO
11# broforce push!
12git push -f origin master
13
14# cleanup our original repository
15cd REPO
16git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch OTHER_FILES_AND_DIRS_TO_DELETE"
17git gc --aggressive --prune=1day
18git fsck --unreachable
19# broforce push!
20git push -f origin master
1#!/bin/bash
2# Check if a file needs to be downloaded
3# Useful iff there is no checksum available to check a local file
4url=http://test-url.com
5
6dl=1
7if [[ -f $file_path ]]; then
8 local_size=$(ls -l $file_path | awk '{print $5}')
9 remote_size=$(wget --spider $url 2>&1 | awk '/Length/ {print $2}')
10
11 if [[ $local_size -eq $remote_size ]]; then
12 echo "The file was previously downloaded"
13 dl=0
14 else
15 echo "Corrupted file found, re-downloading..."
16 rm -f $file_path
17 fi
18else
19 echo "Downloading file..."
20fi
21
22[[ $dl -eq 1 ]] && wget $url -O $file_path
HTM5 interactive player that can be embedded in any web application to provide fancy waveforms, various analyzer results, synced time metadata display during playback (time-marking) and remote indexing.
(via http://linuxfr.org/users/philippemc/journaux/beatnitpicker)