Skip to content

Instantly share code, notes, and snippets.

@cinco
cinco / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
rvm use .... # select the ruby you want to use
rvm cron setup # let RMV do your cron settings
crontab -e # add a new cronjob
@cinco
cinco / gist:38c3d3b45766fcc1212b
Created June 10, 2015 04:01
wp-cli migrate wp
wp search-replace example.com newexample.com --dry-run
@cinco
cinco / gist:fe574bd202af3c087ea1
Last active February 16, 2019 17:05
useradd linux command line
useradd -m -d /home/mike1 -s /bin/bash -c "the mike1 user" -U mike1
@cinco
cinco / gist:77e51d9cc480a4e56b72
Created July 6, 2015 14:52
reset mysql root password
sudo service mysql stop
sudo mysqld_safe --skip-grant-tables &
mysql -u root
use mysql;
update user set password=PASSWORD("mynewpassword") where User='root';
flush privileges;
quit
### encerre o mysqld_safe e:
sudo service mysql start
@cinco
cinco / gist:61a4a28d96181b4f18d8
Created July 16, 2015 21:55
create LXC Container with another distro version of host OS
lxc-create -n nomedamaquina -t ubuntu -- --release trusty
@cinco
cinco / instala-laravel.md
Created August 6, 2015 05:47
instalando composer e laravel

h4. instalando composer globalmente

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

h4. instala laravel globalmente

#!/bin/bash
sudo apt-get update
sudo apt-get install -y nginx
sudo apt-get install -y php5-fpm php5-mysql
@cinco
cinco / Grandtheftauto5-linux.md
Last active August 29, 2015 14:27 — forked from BeauBouchard/Grandtheftauto5-linux.md
How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

How to install Grand Theft Auto V on Linux (Ubuntu x64 14.04) using wine.

Date Completed: Not done yet ~~ April 23rd 2015

My Test System

  • Video Card: Nvidia GTX 465 (lol right? Game runs shitty)
  • Driver: tested on 331.38, works on 331.38+
  • OS: Ubuntu x64 14.04
  • POL: I used Play on linux 4, I assume most of the capabilities are in winetricks
  • Wine: wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit
@cinco
cinco / post.md
Created October 10, 2015 01:11 — forked from kbond/post.md
Ubuntu LAMP Development Environment Setup

Install git:

sudo apt-get install git

Configure Git:

touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"

git config --global user.email "Your Email"