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
@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"

@cinco
cinco / avconv_examples.sh
Created February 17, 2016 14:00 — forked from romuloceccon/avconv_examples.sh
avconv command lines to reduce video size
# https://trac.ffmpeg.org/wiki/Encode/H.264
# https://trac.ffmpeg.org/wiki/Encode/AAC
# -map 0 -c copy: copy all remaining streams
# -pix_fmt yuv420p: be compatible with most players
# high quality video, high quality audio
avconv -i input.mov -map 0 -c copy -c:v libx264 -preset veryslow -pix_fmt yuv420p -crf 17 -c:a libfdk_aac -vbr 4 output.mov
# high quality *compatible* full-hd video, high quality audio
@cinco
cinco / zabbix-server.sh
Last active May 23, 2017 17:58 — forked from dcnl1980/zabbix-server.sh
Zabbix Server Installation (Ubuntu 16.04 Xenial)
#!/bin/sh
apt update && apt install wget htop curl nano ssh -y
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
dpkg -i zabbix-release_3.2-1+xenial_all.deb && apt-get update
export DEBIAN_FRONTEND=noninteractive
apt install zabbix-server-mysql zabbix-frontend-php -y
@cinco
cinco / prepare_ubuntu_for_laravel.md
Created June 19, 2017 18:51 — forked from mehrancodes/prepare_ubuntu_for_laravel.md
Prepare Ubuntu 16.04 for Laravel ( PHP + Composer + Valet)

Install PHP (shell)

Requirements

  • Dependencies: sudo apt-get install libnss3-tools jq xsel
  • PHP >= 5.6 : sudo apt-get install php
  • PHP Packages: php*-cli php*-common php*-curl php*-json php*-mbstring php*-mcrypt php*-mysql php*-opcache php*-readline php*-xml php*-zip
  • Optional PHP Packages: php*-sqlite3 php*-mysql php*-pgsql

Install Composer (shell)

There are 2 options to installing composer on Ubuntu.

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@cinco
cinco / LAMPInstall.sh
Created July 26, 2018 08:07 — forked from tiaanduplessis/LAMPInstall.sh
LAMP Install Ubuntu 16.04
#!/bin/bash
sudo apt-get update
# Install Apache
sudo apt-get install apache2
# Allow incoming traffic for this profile
sudo ufw allow in "Apache Full"
@cinco
cinco / remote_bash.sh
Created July 26, 2018 18:41 — forked from n0ts/remote_bash.sh
execute bash script from remote site
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
bash <(curl -s http://mywebsite.com/myscript.txt)
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl
curl http://foo.com/script.sh | bash -s arg1 arg2
#!/bin/bash -x
#
# Mautic Installation Shell to Cloud9:
# ----------
# Version 2.0
# By expertjtb
# INSTRUCTION:
# ----------
# USE IT AT YOUR OWN RISK!
# LICENSE: GPL V2