Name: FriendzoneTeam
Owner: gophergala2016
Description: Application that lets you run commands on the server (Ubuntu / Debian) via twitter
Created: 2016-01-22 22:20:02.0
Updated: 2016-01-30 21:19:44.0
Pushed: 2016-01-25 01:07:12.0
Homepage:
Size: 39
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
FriendzoneTeam
SocialServer with Go
Application that lets you run commands on the server (Ubuntu / Debian) via twitter. (developed golang)
Prerequisites
- A deb based linux distribution
- openssh
- go 1.5+
Installation
Edit the file: services/services.go and change lines: 25, 26 and 27
Add your Twitter Api
anaconda.SetConsumerKey("")
anaconda.SetConsumerSecret("")
api := anaconda.NewTwitterApi("", "")
And add your ssh configuration (recommended root for servers use) at line 97 and 135
out, err := ssh.Conekta("USER", "PASS", "HOST", comando.Command)
Examples
(Desfault directory is $HOME/ for all examples)
Send a DM to your twitter Account
- Create a file: Without spaces, third parameter optional (Desfault is $HOME/)
- create hello.go $GOPATH/src/hello
- create error_log
- Create a Directory: Without spaces and “/” at the end (Desfault directory is $HOME/)
- create backups/
- create logs/ /var/www
- create user/ /home/
- Delete a file: only filename (Desfault directory is $HOME/)
- delete error_log
- delete $GOPATH/src/hello/hello.go
- Delete a Directory: complete route and “/” at the end (Desfault directory is $HOME/)
- delete $GOPATH/src/hello/
- delete work/src/hello/
- Move a File (Desfault directory is $HOME/)
- move error_log $HOME/Backups/
- move error_log Backups
- Move a Directory
- move logs/ /var/www
- move logs/ $HOME/Backups/
- Rename a file
- rename error_log error_log.1
- Rename a Directory
- move logs/ error_logs/
- move logs/ acces_logs
- Create, Start, Restart and Stop servers
- Create a Go Server:
- Create a Lemp (Linux, Nginx, MySQL, PHP) Server:
- Create a Lamp (Linux, Apache, MySQL, PHP) Server:
- Create a Mean (MongoDB, Express, Angular, NodeJS)
- Start a Service
- Restart a Service
- Stop a Service
- Execute a bash command:include “:” at the start
- Execute a personalized command
- Send a DM to your Twitter Account with “:” at first
- Restart Apache2 Server && Install new Server go
Features
- Anaconda
- Gorilla
- uper.iot
- gonfig
Team
Bugs
- Use root account in ssh configuration to create a new server (this is not recommended)
- [Warning] DM's must be deleted manually as running