Skip to content

Instantly share code, notes, and snippets.

@jeffgeiger
Forked from bndabbs/slackmoji-voodoo.md
Created April 14, 2017 16:05
Show Gist options
  • Select an option

  • Save jeffgeiger/c3e2f1b23610b19c25cc6973595e32c2 to your computer and use it in GitHub Desktop.

Select an option

Save jeffgeiger/c3e2f1b23610b19c25cc6973595e32c2 to your computer and use it in GitHub Desktop.

Revisions

  1. @bndabbs bndabbs revised this gist Apr 14, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -12,8 +12,8 @@ This deletes any line that doesn't contain **src=**, deletes everything before *

    Now loop over each URL and download the image:
    ```
    while read emoji; do
    curl -O $emoji;
    while read url; do
    curl -O $url;
    done <../emoji
    ```

  2. @bndabbs bndabbs revised this gist Apr 14, 2017. No changes.
  3. @bndabbs bndabbs revised this gist Apr 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ v/src=/d
    %s/?.*$//g
    ```

    This deletes any line that doesn't start with **src**, deletes everything before **http:**, and delets anything after **?**.
    This deletes any line that doesn't contain **src=**, deletes everything before **http:**, and delets anything after **?**.

    Now loop over each URL and download the image:
    ```
  4. @bndabbs bndabbs revised this gist Apr 14, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,6 @@ Open file in vim and run the following commands:
    ```
    v/src=/d
    %s/^.*http:/http:/g"
    %s/?.*$/d
    %s/?.*$//g
    ```

  5. @bndabbs bndabbs revised this gist Apr 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,4 @@ done <../emoji

    Install [Slack Emoji Tools](https://chrome.google.com/webstore/detail/slack-emoji-tools/anchoacphlfbdomdlomnbbfhcmcdmjej) Chrome extension.

    Drag all your emoji into the bulk upload box and then flip your machine over and fry some bacon, cuz it's gonna get hot!
    Drag all your emoji into the bulk upload box and then flip your machine over and fry some :bacon:, cuz it's gonna get hot!
  6. @bndabbs bndabbs revised this gist Apr 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ v/src=/d
    %s/?.*$//g
    ```

    This deletes any line that doesn't start with source, deletes everything before `http:`, and delets anything after `?`.
    This deletes any line that doesn't start with **src**, deletes everything before **http:**, and delets anything after **?**.

    Now loop over each URL and download the image:
    ```
  7. @bndabbs bndabbs created this gist Apr 14, 2017.
    23 changes: 23 additions & 0 deletions slackmoji-voodoo.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    Grab the main page with all the links:
    `curl https://slackmojis.com/ > emoji`

    Open file in vim and run the following commands:
    ```
    v/src=/d
    %s/^.*http:/http:/g"
    %s/?.*$/d
    %s/?.*$//g
    ```

    This deletes any line that doesn't start with source, deletes everything before `http:`, and delets anything after `?`.

    Now loop over each URL and download the image:
    ```
    while read emoji; do
    curl -O $emoji;
    done <../emoji
    ```

    Install [Slack Emoji Tools](https://chrome.google.com/webstore/detail/slack-emoji-tools/anchoacphlfbdomdlomnbbfhcmcdmjej) Chrome extension.

    Drag all your emoji into the bulk upload box and then flip your machine over and fry some bacon, cuz it's gonna get hot!