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
#roll back commit | |
git reset --soft HEAD^ | |
#remove file from index | |
git reset HEAD path/to/unwanted_file | |
#commit again without unwanted files | |
git commit -m "My commit message" | |
#Source: http://stackoverflow.com/questions/12481639/remove-files-from-git-commit |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
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
1BD/1BR condo for rent (Sunnyvale) | |
<b>Description</b> <ul> Nice pretty quiet place for living </ul> | |
<b>Unit Features</b> <ul> <li>Washer/Dryer</li> <li>Dishwasher</li> <li>AC/Heater</li> <li>Pretty big balcony</li> <li>1 parking space</li> <li>Tennis court and swimming pool access</li> <li>Water and Garbage costs are included </li> </ul> | |
<b>Leasing terms</b> <ul> <li>1 yr. lease</li> <li>Security deposit: $2090</li> <li>Rent due before 4th of every month</li> <li>Utilities (PG&E, Cable etc.) are not included.</li> </ul> | |
<b>Description</b> <ul> Nice pretty quiet place for living </ul> | |
<b>Unit Features</b> <ul> <li>Washer/Dryer</li> <li>Dishwasher</li> <li>AC/Heater</li> <li>2 balconies (big & small)</li> <li>1 parking space</li> <li>Tennis court and swimming pool access</li> <li>Water and Garbage costs are included in rent</li> <li>Grocery shops: Costco, Sprouts, Safeway</li> </ul> | |
<b>Leasing terms</b> <ul> <li>1 yr. lease</li> <li>Security deposit: $2090</li> <li>Rent due before 4th of every month</li> <li> |
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
wget -O output.txt --user=user_name --password pass url --no-proxy |
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
wget -r -p -U Mozilla https://ya.ru --user your_name --password you_pass |
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
case R.id.buttonRun: | |
Log.e(LOG_TAG, "buttonRun"); | |
if (myTaskList != null && myTaskList.size() > 0){ | |
for(MyTask task : myTaskList) { | |
Log.e(LOG_TAG, "Stopping task: " + task.getTaskID()); | |
task.cancel(true); | |
} | |
myTaskList.clear(); | |
} |
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
sudo lsof -i :80 |
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
https://www.dropbox.com/s/s3edo0nhxoo0tq6/Screenshot%202015-10-03%2001.38.39.png?dl=0 | |
Open Google Maps. | |
Make a map or get directions. | |
When you're ready to share, click the main menu . | |
Select Share or embed map. ... | |
[Optional] Check the box next to "Short URL" to create a shorter web page link. | |
Double-click the link to highlight it, then copy it by pressing CTRL+C (for PC) or ⌘+C (for Mac). |
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
<!-- | |
This is a sample email taken from https://developers.google.com/gmail/schemas/apps-script-tutorial | |
and used to test the GMail actions support. | |
--> | |
<html> | |
<head> | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "EmailMessage", |
OlderNewer