- More information at http://www.minetest.net/
- Developer Wiki: http://dev.minetest.net/
- (Unofficial) Minetest Modding Book by rubenwardy: https://rubenwardy.com/minetest_modding_book/
This file contains 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 | |
# This script will pull the latest Minecraft.deb file from Mojang and install it. | |
# I put this on a cron to run every week. I created this because I was tired of having | |
# to update the launcher every time I opened it. | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi |
This file contains 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
# copied from http://www.noah.org/engineering/src/shell/rsync_backup | |
# minor modifications made to support --exclude-from file | |
#!/bin/sh | |
# | |
# This maintains a one week rotating backup. This will normalize permissions on | |
# all files and directories on backups. It has happened that someone removed | |
# owner write permissions on some files, thus breaking the backup process. This | |
# prevents that from happening. All this permission changing it tedious, but it | |
# eliminates any doubts. I could have done this with "chmod -R +X", but I |
This file contains 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
# thanks Recker Swartz - https://gorails.com/forum/install-bootstrap-with-webpack-with-rails-6-beta | |
Updated: | |
Rails 6 with Bootstrap and configured with Webpack | |
Step 1: | |
yarn add bootstrap jquery popper.js | |
Step 2: | |
in config/webpack/environment.js add the following: |
Simple Access Control Lists.
Access control lists are composed of “allow” and “deny” halves to control access. Use “all” or “*” to match any address. To match a specific address use any address or address mask that IPAddr can understand.
Example:
This file contains 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
ruby -e "tempo=(60_000/(ARGV[0].to_i||100));start=0;current=(Time.now.to_f*1000).to_i;while true do current=(Time.now.to_f*1000).to_i;if((current-start)>tempo);start=current;print\"\a\";end;end" 120 |
This file contains 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
remote_file "/home/chris/.vimrc" do | |
source "https://raw.githubusercontent.com/chris-roerig/dotfiles/master/vimrc" | |
owner "chris" | |
group "chris" | |
mode "0755" | |
end | |
directory "/home/chris/.vim/bundle/" do | |
owner "chris" | |
group "chris" |
This file contains 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
RSpec.configure do |config| | |
config.use_transactional_fixtures = false | |
# Use transactions by default | |
config.before :each do | |
DatabaseCleaner.strategy = :transaction | |
end | |
# For the javascript-enabled tests, switch to truncation, but *only on tables that were used* | |
config.before :each, :js => true do |
This file contains 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
require("R6") | |
MathTool <- | |
R6Class("MathTool", | |
public = list( | |
data = NULL, | |
initialize = function(data = c()){ | |
self$data <- data | |
}, | |
odds = function() { |
This file contains 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
# Gemfile | |
# gem "aws-sdk" | |
# gem 'paperclip', :git=> 'https://github.com/thoughtbot/paperclip', :ref => '523bd46c768226893f23889079a7aa9c73b57d68' | |
# config/initializers/paperclip.rb | |
Paperclip::Attachment.default_options.update({ | |
storage: :s3, | |
s3_protocol: 'https', |
NewerOlder