This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dev/sdb1 /home/michael/Media1 ext4 defaults 0 1 | |
//192.168.1.104/TV /media/TV cifs guest 0 0 | |
//192.168.1.104/TV-Christina /media/TV-Christina cifs guest 0 0 | |
//192.168.1.104/TV-Kids /media/TV-Kids cifs guest 0 0 | |
//192.168.1.104/TV-Michael /media/TV-Michael cifs guest 0 0 | |
//192.168.1.104/Movies /media/Movies cifs guest 0 0 | |
//192.168.1.104/Music /media/Music cifs guest 0 0 | |
//192.168.1.104/Photos /media/Photos cifs guest 0 0 | |
//192.168.1.104/Training /media/Training cifs guest 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after_success: | |
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then | |
- git config --global user.email "${GIT_EMAIL}" | |
- git config --global user.name "${GIT_NAME}" | |
- git pull origin master | |
- git remote add travis "https://${GH_TOKEN}@github.com/username/some-branch.git" | |
- git push travis "${TRAVIS_BRANCH}":master | |
- fi | |
env: | |
global: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "gitlab.sh [options] install | |
elif [ $1 == 'install' ]; then | |
echo "Updating Operating System..." | |
sudo apt-get update -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Search | |
class Indexer | |
include Sidekiq::Worker | |
sidekiq_options queue: :low, retry: false, backtrace: true | |
LOGGER = Sidekiq.logger.level == Logger::DEBUG ? Sidekiq.logger : nil | |
SEARCH_POOL = ConnectionPool.new(size: SEARCH_UPDATE_POOL, timeout: 5) do | |
Elasticsearch::Client.new host: ELASTICSEARCH_URL, logger: LOGGER | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +bastosmichael is my blockchain ID. https://onename.com/bastosmichael |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
business - The Business associated with this Page. Visible only with a page access token or a user access token that has admin rights on the page | |
can_checkin - Whether this page has checkin functionality enabled - bool | |
can_post - Whether the current session user can post on this Page - bool | |
category - The Page's category. e.g. Product/Service, Computers/Technology - string | |
category_list - The Page's sub-categories - list<pagecategory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facebook_ids = [ | |
"cirospizzeriabeerhousegaslamp", | |
"lavalenciahotel", | |
"tendergreensfood", | |
"craftpizzaco", | |
"tapiocaexpress", | |
"singlefinsd", | |
"thebakedbear", | |
"artofespresso", | |
"julianbakery", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_minutes(time, signed_integer_minutes) | |
if time_regex = time.match(/(\d{1,2}+):(\d{2}+) (AM|PM)/) | |
total_minutes = time_regex[2].to_i + (signed_integer_minutes.abs % 60) | |
final_minutes = total_minutes % 60 | |
total_hours = time_regex[1].to_i + (signed_integer_minutes.abs / 60 % 60) + (total_minutes / 60 % 60) | |
final_modulo_hours = total_hours % 12 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BattleShip | |
class Board | |
SHIPS = {C: 5, B: 4, S: 3, D: 3, T: 2} | |
def initialize | |
@grid = (1...10).map {(1...10).map {'.' }} | |
end | |
def randomly_load_ships | |
SHIPS.each do |ship,cells| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const liters = {canonical: 'liters', | |
metric: [{type: 'milliliters', | |
to: {divide: 1000}, | |
from: {multiply: 1000}}, | |
{type: 'centiliters', | |
to: {divide: 100}, | |
from: {multiply: 100}}, | |
{type: 'deciliters', | |
to: {divide: 10}, | |
from: {multiply: 10}}, |