mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-19 06:30:58 +00:00
1 line
6.1 KiB
JSON
1 line
6.1 KiB
JSON
[{"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347133.110379, "message": "one of my favorites is when I want to have the same command \"on\" a set of remote boxes", "group_id": 1042, "id": 276907}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299346776.0331781, "message": "For my web projects I mostly have a few resources that need to be compiled. Like coffeescript to javascript or sass to css. How can I save these commands so I can easily reuse them? example: coffe -o lib/ -c src/", "group_id": 1042, "id": 276865}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347155.1645041, "message": "I use a for loop in my .bashrc to generate a bunch of aliases that are the same thing for different hosts", "group_id": 1042, "id": 276913}, {"user_id": 15382, "stars": [], "topic_id": 11000, "date_created": 1299346974.762295, "message": "yeah just drop in in your .bash_profile or .bashrc to make it \"permanent\"", "group_id": 1042, "id": 276883}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299346987.2090311, "message": "and then I can just run it with magic_command?", "group_id": 1042, "id": 276886}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299347380.1618731, "message": "That's why I thought a separate file might be better. But i'll add it to bashrc for now.", "group_id": 1042, "id": 276943}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299347060.1636989, "message": "Very good tips, thanks a lot.", "group_id": 1042, "id": 276900}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299346780.8023789, "message": "coffee*", "group_id": 1042, "id": 276867}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347172.1905611, "message": "so inside the for loop, something like", "group_id": 1042, "id": 276914}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347212.9938419, "message": "but I think you get the picture", "group_id": 1042, "id": 276921}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347277.6777639, "message": "certainly ok", "group_id": 1042, "id": 276933}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299346990.758553, "message": "yup!", "group_id": 1042, "id": 276887}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299347130.352932, "message": "Yeah I am going to start using them a lot now too. Seems really great.", "group_id": 1042, "id": 276906}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347284.6821871, "message": "I add things to my .bashrc all the time", "group_id": 1042, "id": 276934}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299346933.5643721, "message": "For simple things like that, I usually use an alias:", "group_id": 1042, "id": 276879}, {"user_id": 5778, "stars": [{"date_created": 1299347074.6757269, "user_id": 15382}], "topic_id": 11000, "date_created": 1299346955.3632159, "message": "alias magic_command=\"coffe -o lib -c src/\"", "group_id": 1042, "id": 276881}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299346978.1509459, "message": "assuming you're using bash, you can usually put this alias line in your .bashrc", "group_id": 1042, "id": 276884}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299346999.499481, "message": "That's great thanks guys!", "group_id": 1042, "id": 276889}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347002.061188, "message": "if you put it in your .bashrc, you'll want to do something like", "group_id": 1042, "id": 276890}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347005.2052679, "message": "source ~/.bashrc", "group_id": 1042, "id": 276891}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347016.3814399, "message": "so the alias is available in your current shell session", "group_id": 1042, "id": 276893}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347028.5092709, "message": "but subsequent sessions should have it available automatically", "group_id": 1042, "id": 276896}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347070.405587, "message": "no problem :)", "group_id": 1042, "id": 276901}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347095.222445, "message": "I use aliases all the time for many things", "group_id": 1042, "id": 276903}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347198.156172, "message": "alias user@$host \"coffee -o lib/ -c src/\"", "group_id": 1042, "id": 276917}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347203.266243, "message": "oops", "group_id": 1042, "id": 276919}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347209.1181271, "message": "forgot the name of the alias :)", "group_id": 1042, "id": 276920}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347275.7341471, "message": "yes", "group_id": 1042, "id": 276931}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347301.201859, "message": "different distros will have different default .bashrc files", "group_id": 1042, "id": 276936}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299347309.3982799, "message": "but it's all just stuff to customize your shell session", "group_id": 1042, "id": 276939}, {"user_id": 8490, "stars": [], "topic_id": 11000, "date_created": 1299347264.269351, "message": "is it okay to just add it to the bashrc? seems there already is some stuff inside it.", "group_id": 1042, "id": 276929}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299367082.4094081, "message": "@Enome you can keep things like that in a file outside of your .bashrc, and simply \"source $HOME/path/to/your_magic_file.sh\" inside the .bashrc", "group_id": 1042, "id": 277921}, {"user_id": 5778, "stars": [], "topic_id": 11000, "date_created": 1299367096.721159, "message": "similar to how you would use \"source\" to load the alias into your current shell session", "group_id": 1042, "id": 277922}] |