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
git pull | |
git push | |
git branch | |
git commit | |
git checkout | |
git status | |
git log |
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
git remote add <remote_name> </path/to/existing/repo> | |
git fetch <remote_name> | |
git merge <remote_name>/master |
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
if vagrant_version >= "1.3.0" | |
config.vm.synced_folder "/Users/sudar/Dropbox/plugins/", "/srv/www/wordpress-default/wp-content/plugins", :owner => "www-data", :mount_options => [ "dmode=775", "fmode=774" ] | |
else | |
config.vm.synced_folder "/Users/sudar/Dropbox/plugins/", "/srv/www/wordpress-default/wp-content/plugins", :owner => "www-data", :extra => 'dmode=775,fmode=774' | |
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
apt-get install python g++ make | |
mkdir ~/nodejs && cd $_ | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*` | |
./configure |
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
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white) - %an%C(reset)%C(bold yellow)%d%C(reset)' --all" |
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 | |
# script to generate image sizes for srcset | |
# generated images will be in ./output dir | |
mkdir -p output | |
# .jpg files, 1440 width size, adds an -xl in the name of the new ones, keeps the old ones | |
for i in *.jpg; do convert $i -resize 1440 ./output/$(basename $i .jpg)-xl.jpg; 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
# move all files to cleaned directory | |
# Europe, USA, Japan, Spain | |
mv *\(E\)*\ \[\!\]* cleaned | |
mv *\(U\)*\ \[\!\]* cleaned | |
mv *\(J\)*\ \[\!\]* cleaned | |
mv *\(S\)*\ \[\!\]* cleaned |
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
# -*- coding: utf-8 -*- | |
import yaml | |
import html2text | |
import os | |
ROOT_DIR = os.getcwd() | |
dic = { | |
'title': 'My awesome title', |
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
youtube-dl --extract-audio --audio-format mp3 https://www.youtube.com/playlist?list=<LIST_ID> |
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
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: samueldebruyn/debian-git | |
pipelines: | |
default: | |
- step: | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp | |
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://youtftpsite.com/ftp-path/ | |
# for the second push run this command instead of init |