Skip to content

Instantly share code, notes, and snippets.

@migaes
Last active April 9, 2017 18:11
Show Gist options
  • Save migaes/b7dea2ebbafbefc3ee9a987d628c406d to your computer and use it in GitHub Desktop.
Save migaes/b7dea2ebbafbefc3ee9a987d628c406d to your computer and use it in GitHub Desktop.

Revisions

  1. migaes revised this gist Apr 9, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ $ git push origin :refs/tags/release01
    ### Search for a string on multiple files
    $ find . -name *.conf -exec grep -n serverName {} \; -print
    ---------------------------------------------
    ### Check all redirections that occurs when you hit a url
    ### Check all redirections before access a url
    $ curl -I -L awsperkbox.huddlebuy.co.uk
    ---------------------------------------------
    ### Find the largest 10 files
  2. migaes revised this gist Dec 4, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,7 @@ $ find . -name *.conf -exec grep -n serverName {} \; -print
    $ curl -I -L awsperkbox.huddlebuy.co.uk
    ---------------------------------------------
    ### Find the largest 10 files
    $ find / -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
    $ find / -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
    ---------------------------------------------
    ### Kill proccesses by regex
    $ kill $(ps aux | grep 'loquesea' | awk '{print $2}')
  3. migaes revised this gist Nov 28, 2016. No changes.
  4. migaes revised this gist Oct 16, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,7 @@ $ git push origin :refs/tags/release01
    $ find . -name *.conf -exec grep -n serverName {} \; -print
    ---------------------------------------------
    ### Check all redirections that occurs when you hit a url
    $ curl -I -L awsperkbox.huddlebuy.co.uk
    $ curl -I -L awsperkbox.huddlebuy.co.uk
    ---------------------------------------------
    ### Find the largest 10 files
    $ find / -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
  5. migaes revised this gist Oct 14, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,7 @@ $ git tag -d release01
    $ git push origin :refs/tags/release01
    ---------------------------------------------
    ### Search for a string on multiple files
    $ find . -name *.conf -exec grep -n serverName {} \; -print
    $ find . -name *.conf -exec grep -n serverName {} \; -print
    ---------------------------------------------
    ### Check all redirections that occurs when you hit a url
    $ curl -I -L awsperkbox.huddlebuy.co.uk
  6. migaes revised this gist Oct 14, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,6 @@ $ git push origin --tags
    ### Remove a tag
    $ git tag -d release01
    $ git push origin :refs/tags/release01
    ---------------------------------------------
    ---------------------------------------------
    ### Search for a string on multiple files
    $ find . -name *.conf -exec grep -n serverName {} \; -print
  7. migaes revised this gist Oct 14, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Add tag on the current state of the branch you are
    ### Add tag on the current state of the branch you are
    $ git tag release01
    $ git push origin --tags
    ---------------------------------------------
    # Remove a tag
    ### Remove a tag
    $ git tag -d release01
    $ git push origin :refs/tags/release01
    ---------------------------------------------
  8. migaes created this gist Oct 14, 2016.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # Add tag on the current state of the branch you are
    $ git tag release01
    $ git push origin --tags
    ---------------------------------------------
    # Remove a tag
    $ git tag -d release01
    $ git push origin :refs/tags/release01
    ---------------------------------------------