Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / find-git-repo.md
Created April 11, 2017 03:51
Find all the git repository inside a directory.
find . -name .git -type d -exec dirname {} \;
  • . specifies the path to search.
  • -type d makes this only apply to directories.
  • -name ... specifies the name of the directories this should apply to.
  • -exec ... {} + is the command that will be run for each match.
@ishu3101
ishu3101 / share_localhost.sh
Created April 4, 2017 23:29
Run Localhost on the web. Instantly share your localhost environment!
# No download required. Run your app on port 8080 and then run this command and share the URL.
# See http://localhost.run for more information.
ssh -R 80:localhost:8080 -p 2222 ssh.localhost.run
@ishu3101
ishu3101 / date_format.vb
Created March 13, 2017 02:48
Microsoft Word Macro to change all instances of date from 2017-03-15 to March 2017 Format
Sub GetDateAndReplace()
Dim FoundOne As Boolean
Selection.HomeKey Unit:=wdStory, Extend:=wdMove
FoundOne = True ' loop at least once
Do While FoundOne ' loop until no date is found
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
@ishu3101
ishu3101 / run_usage.md
Last active January 3, 2019 10:37
Running Code in different languages, frameworks in [Cloud9](C9.io)

jekyll

jekyll serve --port $PORT --host $IP

hugo

hugo server -w --port=$PORT --bind=$IP

hexo

hexo server -p $PORT -i $IP

python

@ishu3101
ishu3101 / startup_quotes.txt
Created January 28, 2017 22:26
Startup Inspiration Quote. Taken from: https://bndr.talkus.io/c/inspire
"Your reputation is more important than your paycheck, and your integrity is worth more than your career." - Ryan Freitas, About.me co-founder
"Every time we launch a feature, people yell at us." - Angelo Sotira, deviantART co-founder
"Be undeniably good. No marketing effort or social media buzzword can be a substitute for that." - Anthony Volodkin, Hype Machine founder
"Money is like gasoline during a road trip. You don’t want to run out of gas on your trip, but you’re not doing a tour of gas stations." - Tim O’Reilly, O’Reilly Media founder and CEO
"If you can’t feed a team with two pizzas, it’s too large." - Jeff Bezos, Amazon founder and CEO
"Don’t worry about people stealing your design work. Worry about the day they stop." - Jeffrey Zeldman, A List Apart Publisher
"Chase the vision, not the money, the money will end up following you." - Tony Hsieh, Zappos CEO
"The value of an idea lies in the using of it." - Thomas Edison, General Electric Co-founder
"Make every detail perfect and limit the number of de
@ishu3101
ishu3101 / sample-resume.json
Last active January 31, 2024 22:57
Sample Resume in JSON Resume Format
{
"basics": {
"name": "Your first and last name",
"label": "",
"picture": "",
"email": "Your email address",
"phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.",
"degree": "",
"website": "Your website URL",
"summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.",
@ishu3101
ishu3101 / embed-powershell.md
Last active September 29, 2016 23:11
Embed Powershell Environment on your blog. See http://www.learnondemandsystems.com/powershell-containers-blogs/

To insert Powershell Environment in your blog just paste the following content into the location where you would like to see it in your blog post

<iframe src="https://containerdemo.learnondemandsystems.com/Lab/LaunchLab?containerImageId=sha256:02cb7f65d61b073a8b6b62ebdec43727bf2b14d5d5ce11e9cccfe583ba3bff92" width="600" height="300" frameborder="0"></iframe>
<!DOCTYPE html>
<html>
<head>
<title>Using Layout, Partials with Handlebars Template</title>
</head>
<body>
<p>This is the top of the body content in the default.html file</p>
<p>This is the bottom of the body content in the default.html file</p>
<h1>This is a header</h1>
<p>This is some other content</p>
var items = ["item1","item2","item3","item4"];
console.log(humanify(items));
function humanify(array){
if( array.length > 1 ){
return array.slice(0,-1).join(', ') + ' & ' + array[array.length -1];
}
return array[0];
}
@ishu3101
ishu3101 / Get-PopularModule.ps1
Created September 17, 2016 10:04
List the most popular Modules in the Powershell Gallery
Find-Module |
Sort-Object @{ Expression = { [int]$_.AdditionalMetadata.downloadCount }; Descending = $true } |
Select-Object @{Label = 'DownloadCount'; Expression = {[int]$_.AdditionalMetadata.downloadCount}}, Name, Version, Author, ProjectUri, CompanyName, PublishedDate