navigate to your project root
cd <your-project-dir>
NOTE: i'm using sdkman to manage my java and gradle versions
install java 16
sdk install java 16.0.0-zulunavigate to your project root
cd <your-project-dir>
NOTE: i'm using sdkman to manage my java and gradle versions
install java 16
sdk install java 16.0.0-zulu| #!/bin/sh | |
| #Check the Drive Space Used by Cached Files | |
| du -sh /var/cache/apt/archives | |
| #Clean all the log file | |
| #for logs in `find /var/log -type f`; do > $logs; done | |
| logs=`find /var/log -type f` | |
| for i in $logs |
| { | |
| "auto_complete_commit_on_tab": true, | |
| "binary_file_patterns": | |
| [ | |
| "*.dds", | |
| "*.eot", | |
| "*.gif", | |
| "*.ico", | |
| "*.jar", | |
| "*.jpeg", |
Open Terminal Ctrl+Alt+T Download Firefox Developer Edition tar file
wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US
Copy tar file to opt
sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2
Open opt folder (cd /opt/) and untar file
sudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2
Copy from local to Hostgator
scp -qr -P 2222 -o PubkeyAuthentication=no <source> username@host:<destination>
Copy from Hostgator to local
scp -qr -P 2222 -o PubkeyAuthentication=no username@host:
When attaching a file in a Rails app via Paperclip, you may get an error like:
Validation failed: Image has an extension that does not match its contents
To resolve this, create the file config/initilizers/paperclip.rb and then restart your server.
#config/initilizers/paperclip.rb
require 'paperclip/media_type_spoof_detector'
module PaperclipSimple way to get an Instagram post's media source.
Go to the page you want to download from.
Open your browser's dev console (e.g. Ctrl+Shift+J in Chrome on Windows/Linux).
Run the following code in the console to print the image/video URL to the console.
$('.lfFrame.Frame.Image').attr('src') // image (option 1)
$('meta[property="og:image"]').attr('content') // image (option 2)