create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
class stdin_stream: boost::noncopyable { | |
typedef boost::function<void (const boost::system::error_code &, size_t bytes_transferred)> read_handler_type; | |
public: | |
stdin_stream(boost::asio::io_service &io, HANDLE hin): io(io), hin(hin), hev(CreateEvent(0, 0, 0, 0)), handler(), buffer(0), size(0) { | |
_beginthread(&stdin_stream::thread_handler_gateway, 0, this); | |
} | |
~stdin_stream() { | |
buffer = 0; | |
CloseHandle(hev); | |
} |
#!/bin/bash | |
# disk_wipe.sh | |
# Author: Kromey (http://kromey.us/) | |
# This simple Bash script leverages the dd utility to provide user feedback | |
# as progress is made, designed for the purpose of wiping hard drives or | |
# partitions. This script reads from /dev/zero to most efficiently zero-out | |
# the target device or partition. | |
# | |
# BEGIN CONFIG |
#!/bin/bash -e | |
# Lifted from: https://github.com/adrienthebo/git-tools/blob/master/git-truncate | |
# Note: seem to be finding the need to run this twice over to commit the truncate | |
if [[ (-z $1) || (-z $2) ]]; then | |
echo "Usage: $(basename "$0") <drop before SHA1 commit> <branch>" | |
exit 1 | |
fi | |
git filter-branch --parent-filter "sed -e 's/-p $1[0-9a-f]*//'" \ |
Homebrew build logs for carthage on macOS 10.14.4 | |
Build date: 2019-04-10 15:10:24 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
If you have your code defined in classes in lib/ folder you may have problems to load that code in production.
Autoloading is disabled in the production environment by default because of thread safety.
Change config/application.rb:
config.autoload_paths << Rails.root.join("lib")
config.eager_load_paths << Rails.root.join("lib")
## | |
# This file describes a simple way to implement the idea of pure virtual | |
# methods (abstract methods in Java, C#,...) in Ruby. Personally, I haven't | |
# used this pattern while programming in Ruby, but I thought it could be fun. | |
# | |
## | |
# This class provides a fancy way to show an error when a virtual method | |
# is being used but the subclass hasn't implemented it. |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
require 'nokogiri' | |
require 'open-uri' | |
# Get a Nokogiri::HTML:Document for the page we're interested in... | |
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove')) | |
# Do funky things with it using Nokogiri::XML::Node methods... | |
#### |
To remove a submodule you need to: