Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
#!/bin/bash | |
# Rename all *.txt to *.text | |
for f in *.txt; do | |
mv -- "$f" "${f%.txt}.text" | |
done |
#!/bin/bash | |
chmod 0644 ~/.ssh/id_rsa.pub | |
chmod 0600 ~/.ssh/id_rsa |
#!/bin/bash | |
# Install reflector | |
sudo pacman -S reflector | |
# Update mirrorlist | |
reflector | sudo tee /etc/pacman.d/mirrorlist | |
import time, sys | |
start = time.clock() | |
for x in range(1000): | |
pass | |
end = time.clock() |
# With start time and duration | |
ffmpeg -ss $START -i $INFILE -c copy -map 0 -t $DURATION $OUTFILE | |
# With start time and end time | |
ffmpeg -ss $START -i $INFILE -c copy -map 0 -to $END $OUTFILE |
# Quick Substitution | |
^string1^string2 | |
# Global Substitution | |
!!:gs/string1/string2 |
Create a fake "viral" page with cute cat pictures, jokes or whatever, get it shared on Facebook (which is known for opening links via _blank). Create a "phishing" website at https://fakewebsite/facebook.com/page.html for example Put this code on your "viral" page window.opener.location = 'https://fakewebsite/facebook.com/page.html'; which redirects the Facebook tab to your phishing page, asking the user to re-enter her Facebook password.
Add this to your outgoing links.
window.onerror = function(msg, _path, line, column, error) { | |
fetch('/errors', { | |
error: error ? error.stack : '', | |
column: column, | |
line: line, | |
msg: msg | |
}) | |
return false | |
} |