Skip to content

Instantly share code, notes, and snippets.

Trung Trần trungtnm

  • 8Bit Rockstars
  • Ho Chi Minh City
View GitHub Profile
@trungtnm
trungtnm / setup-vet-troubleshooting
Created Feb 7, 2018
This gist is for troubleshooting when set up VET
View setup-vet-troubleshooting
If you see this:
`-bash: /usr/local/bin/docker-compose: Permission denied`
You need to grant `rw` permission for both `/usr/local/bin/docker-compose` and `/var/run/docker.sock` by running these instructions:
```
sudo chmod +x /usr/local/bin/docker-compose
sudo chmod +x /var/run/docker.sock
```
@trungtnm
trungtnm / setup-wifi-ubuntu.txt
Last active Jan 10, 2018
How to configure a wifi card using a command line or terminal
View setup-wifi-ubuntu.txt
# source https://www.thinkpenguin.com/gnu-linux/how-configure-wifi-card-using-command-line-or-terminal
How to configure a wifi card using a command line or terminal
This documentation is applicable on distributions such as Ubuntu, Debian, Trisquel, Linux Mint, and other similar distributions (anything derived from these in other words). The below works with at least versions of Ubuntu up to 14.10, Debian up to 8, and Trisquel up to 7. Most likely it'll work with future versions of these distributions as well. However if you believe the directions need updating please contact support.
You may also just want to check out these directions
Step 1: Give yourself administrative access:
sudo su
View selenium-firefox
# run Firefox (geckodriver) with Selenium standalone server v3.7.1
# need to install xvfb, geckodriver...
# ref : https://gist.github.com/adeubank/2d92d66caff2727ce1cc#file-setup-selenium-sh
xvfb-run -a java -Dwebdriver.gecko.driver=/usr/local/bin/geckodriver -jar /usr/local/bin/selenium-server-standalone.jar -enablePassThrough false
@trungtnm
trungtnm / nginx.conf
Last active Oct 19, 2017 — forked from ashleydw/nginx.conf
Laravel nginx conf file
View nginx.conf
server {
listen 80 default_server;
server_name example.com www.example.com;
# remove this if need logging
#access_log /var/www/example.com/logs/access.log;
#error_log /var/www/example.com/logs/error.log;
root /srv/www/example.com/public;
index index.php index.html;
You can’t perform that action at this time.