Skip to content

Instantly share code, notes, and snippets.

View YourFriendCaspian's full-sized avatar
🙃
I'm sure I'll be slow to respond so don't be mad.

yourfriendcaspian YourFriendCaspian

🙃
I'm sure I'll be slow to respond so don't be mad.
View GitHub Profile
@YourFriendCaspian
YourFriendCaspian / find_commands.sh
Created September 2, 2017 04:36 — forked from xtornasol512/find_commands.sh
Pro Tip Commands Linux
# Look for certain files then get the size of everithng finding on current dir
find . -name "*lua*" -type f -exec du -ch {} + | grep total$
# Look for files with a patron on a current dir
find . -name "*lua*" -type f
# Delete all files find them with a patron
find . -name "*lua*" -type f -delete
@YourFriendCaspian
YourFriendCaspian / selenium-instructions.md
Created September 2, 2017 04:35 — forked from james2doyle/selenium-instructions.md
Instructions for installing the most popular webdrivers, and then the latest version of the standalone Selenium server

Steps For Setting Up Selenium And The Webdrivers

Install The Firefox Geckodriver

  • Download the latest Geckodriver for Firefox
  • then mv that file to /usr/local/bin/geckodriver and sudo chmod +x /usr/local/bin/geckodriver
  • make sure you have "webdriver.firefox.profile" : "geckodriver", in your nightwatch.json file if you are using it

Install The Chromedriver

sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install netselect-apt -y
sudo netselect-apt
sudo apt-get install sudo chromium vim git git-core zsh vlc libcanberra-gtk-module fonts-crosextra-carlito fonts-crosextra-caladea -y
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
wget "https://www.rescuetime.com/installers/rescuetime_current_amd64.deb"
sudo dpkg -i rescuetime_current_amd64.deb
rm rescuetime_current_amd64.deb
# install git
sudo apt get install git
# install elasticsearch
sudo apt-get install build-essential libssl-dev
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
sudo apt-get update && sudo apt-get install elasticsearch
# install java
// Place your settings in the file "User/Preferences.sublime-settings", which
// overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform
@YourFriendCaspian
YourFriendCaspian / command_line_app_installs.txt
Created September 2, 2017 04:24
Random Linux program install commands
# Install Postgres
http://apt.postgresql.org/pub/repos/apt/ 9.4-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.4
# Install redis
curl -O http://download.redis.io/releases/redis-3.2.9.tar.gz
tar xzf redis-3.2.9.tar.gz
@YourFriendCaspian
YourFriendCaspian / nextcloud-install-sid.sh
Created September 2, 2017 04:17 — forked from yottu/nextcloud-install-sid.sh
Installing nextcloud 12.0 on Debian GNU/Linux (sid) [lighttpd/mariadb]
### Written: 2017-06-13
### Updated: -
### Get, verify and unpack, delete and move the distribution package (12.0)
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2.sha256
sha256sum -c nextcloud-12.0.0.tar.bz2.sha256 < nextcloud-12.0.0.tar.bz2.sha256
tar xvf nextcloud-12.0.0.tar.bz2 && rm nextcloud-12.0.0.tar.bz2
sudo mv nextcloud /var/www/html
@YourFriendCaspian
YourFriendCaspian / nextcloud-install-jessie.sh
Created September 2, 2017 04:16 — forked from yottu/nextcloud-install-jessie.sh
Installing nextcloud 12.0 on Debian GNU/Linux (Jessie) [Apache2/mysql]
### Written: 2017-06-13
### Updated: -
### Get, verify and unpack, delete and move the distribution package (12.0)
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2.sha256
sha256sum -c nextcloud-12.0.0.tar.bz2.sha256 < nextcloud-12.0.0.tar.bz2.sha256
tar xvf nextcloud-12.0.0.tar.bz2 && rm nextcloud-12.0.0.tar.bz2
sudo mv nextcloud /var/www/
@YourFriendCaspian
YourFriendCaspian / generate-sshkey.sh
Created September 2, 2017 04:16 — forked from chrisvasquez/generate-sshkey.sh
Generate ssh key (linux)
#!/usr/bin/env sh
EMAIL = $1
ssh-keygen -t rsa -b 4096 -C $EMAIL
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa
@YourFriendCaspian
YourFriendCaspian / simple-init-script.sh
Created September 2, 2017 04:14 — forked from blasterpal/simple-init-script.sh
simple-init-script.sh
#!/bin/bash
# from http://ubuntuserverguide.com/2012/06/how-to-installing-nginx-with-php5-and-mysql-support-on-ubuntu-server-12-04-lts.html
PHP_SCRIPT=/usr/sbin/php-fastcgi
FASTCGI_USER=www-data
FASTCGI_GROUP=www-data
PID_DIR=/var/run/php-fastcgi
PID_FILE=/var/run/php-fastcgi/php-fastcgi.pid
RET_VAL=0
case "$1" in