I hereby claim:
- I am patillacode on github.
- I am patillacode (https://keybase.io/patillacode) on keybase.
- I have a public key ASDc90pWfK4Dq76XRSxknUQ_E1Cgws8TMj8B8mXkvApBiAo
To claim this, I am signing this object:
| { 'contributors': None, | |
| 'coordinates': None, | |
| 'created_at': 'Fri Dec 04 15:01:22 +0000 2015', | |
| 'entities': {'hashtags': [{'indices': [67, 78], 'text': 'javascript'}, | |
| {'indices': [79, 83], 'text': 'php'}, | |
| {'indices': [84, 91], 'text': 'python'}, | |
| {'indices': [92, 113], 'text': 'softwarearchitecture'}], | |
| 'symbols': [], | |
| 'urls': [{'display_url': 'goo.gl/fb/XGY31t', | |
| 'expanded_url': 'http://goo.gl/fb/XGY31t', |
| Verifying my Blockstack ID is secured with the address 1P4PPWpCPAngkuuazefTmer9cnvyQudhy7 https://explorer.blockstack.org/address/1P4PPWpCPAngkuuazefTmer9cnvyQudhy7 |
| youtube-dl --playlist-reverse -o "%(playlist_index)s-%(title)s.%(ext)s" |
| #!/bin/bash | |
| for i in *.wav; do | |
| ffmpeg -i "$i" -vn -ar 44100 -ac 2 -ab 320k -f mp3 "${i%%.*}.mp3" | |
| done |
| def print_status_bar(number, number_of_pages): | |
| percentage = int((number / number_of_pages) * 100) | |
| progress = int((percentage * 20) / 100) | |
| progress_msg = '#' * progress + '.' * (20 - progress) | |
| msg = f' Processing [{progress_msg}] ({number}/{number_of_pages})' | |
| print(msg, end='\r', flush=True) | |
| # Use | |
| number_of_pages = Page.objects.count() | |
| for number, page in enumerate(Page.objects.all()): |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| tput setaf 1 && tput bold | |
| echo "Stopping the Plex server" | |
| sudo service plexmediaserver stop | |
| tput sgr0 && tput setaf 4 | |
| echo "Moving to /tmp/ ..." | |
| cd /tmp/ |
| # Switch to the master branch and make sure you are up to date. | |
| git checkout master | |
| git fetch # this may be necessary (depending on your git config) to receive updates on origin/master | |
| git pull | |
| # Merge the feature branch into the master branch. | |
| git merge feature_branch | |
| # Reset the master branch to origin's state. |
| sudo cp /etc/nginx/sites-available/existing-config /etc/nginx/sites-available/new-config | |
| sudo vi /etc/nginx/sites-available/new-config | |
| sudo ln -s /etc/nginx/sites-available/new-config /etc/nginx/sites-enabled/ | |
| sudo /usr/sbin/nginx -s reload |