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
[mergetool] | |
keepBackup = true | |
[alias] | |
# View abbreviated SHA, description, and history graph of the latest 20 commits | |
l = log --pretty=oneline -n 20 --graph --abbrev-commit | |
# View the current working tree status using the short format | |
s = status -s |
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/env bash | |
# ~/.osx — https://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |
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
# Folder view configuration files | |
.DS_Store | |
Desktop.ini | |
# Thumbnail cache files | |
._* | |
Thumbs.db | |
# Files that might appear on external disks | |
.Spotlight-V100 |
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
def drag_and_drop_tracks_into_playlist(tracks, playlist) | |
track_elem = element_by_css('css_path_to_my_track_element') | |
pl_elem = element_by_css('css_path_to_my_playlist_element') | |
select_tracks(tracks) | |
driver.action.click_and_hold(track_elem).move_to(pl_elem, 2, 2).click.perform | |
wait_for_ajax | |
end |
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
# timeout is in seconds | |
def wait_for_ajax(timeout=x) | |
time_limit, interval = (Time.now + timeout), 0.5 | |
loop do | |
break if @driver.execute_script "return jQuery.active == 0" | |
sleep interval | |
raise "Wait for AJAX timed out after waiting for #{timeout} seconds" if Time.now > time_limit | |
end | |
end |
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
function utopia_connect { | |
echo "Montage du Volume ..." | |
mkdir /Volumes/Utopia | |
echo "Connexion en cours ..." | |
sshfs utopia@ks309872.kimsufi.com:/home/utopia /Volumes/Utopia -oauto_cache,reconnect,volname=Utopia | |
echo "Connected" | |
} |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyGMlCpBFspZWrkHjgyfgC12RJa4TZ0M0HEtJRvUosb4q5vuKWI8fDJtomejyIA6JPKzkvxVoCG5Kxd525kQver9VJbV95bQQMPWlhxWGQpn/9e7RygeXbZ9vE3hppZ8CU/aXqyaqc0E+a3bh8aUr/5/Gys9KZJUv1Z3JdjNQFrntuoBNOhRIvY4A/TCoGvY07oeRs5yBSrouaX0Wz437FDY2Ji5Yti5/JB9BcIjuDMuVXRAQXMG3y8k6Q0i6q18wnmdtfJqkODDpBhk72LVHjaxdOSA5kKQ+/8AVXW86i0G7R0pESJftX3323od+JG9fnR4khlFH/0ujClsmKvZ9ow== thibault@official.fm |