addpart
: Informs the Linux kernel of new partitionagetty
: Alternative Linux getty; handles tty, login, shellarch
: print machine architectureblkid
: Locate/print block device attributesblockdev
: Call block device ioctls from the command linecal
: Displays a calendarcfdisk
: Curses based disk partition table manipulatorchcpu
: Configure CPUschfn
: Change your finger informationchkdupexe
: Find duplicate executables
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
before :each do | |
@url = 'http://sns.us-east-1.amazonaws.com:80/?Action=ListTopics&Signature=ItTAjeexIPC43pHMZLCL7utnpK8j8AbTUZ3KGUSMzNc%3D&AWSAccessKeyId=123456&Timestamp=123&SignatureVersion=2&SignatureMethod=HmacSHA256' | |
EventMachine::MockHttpRequest.reset_registry! | |
EventMachine::MockHttpRequest.reset_counts! | |
EventMachine::MockHttpRequest.pass_through_requests = false #set to false to not hit the actual API endpoint | |
end | |
it 'should be able to access the API endpoint' 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
#!/bin/bash | |
CXXFLAGS="-pipe" cmake ../ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_INSTALL_PREFIX=`pwd`/build -DCMAKE_DEBUG_POSTFIX='' -DBUILD_OSG_ANIMATIONTEST=NO -DOSG_WINDOWING_SYSTEM=Cocoa -DBUILD_OSG_EXAMPLES=NO -DwxWidgets_CONFIG_EXECUTABLE=wxWidgets_CONFIG_EXECUTABLE-NOTFOUND -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk | |
make | |
source debug_env.sh |
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
#ifndef PROFILER | |
#define PROFILER | |
#include <map> | |
#include <string> | |
#include <utility> | |
#include <fstream> | |
#include <iomanip> | |
#include <osg/Timer> |
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
1. disable secure boot | |
2. clean install windows (see https://www.reddit.com/r/Dell/comments/5qe3oh/how_to_fresh_install_on_xps_15_9560/) | |
2.1 in case usb does not show on boot: http://www.dell.com/support/article/us/en/19/SLN297060/xps-13-9343--how-to-install-ubuntu-developer-edition-1404-on-a-dell-pc-configured-for-the-unified-extensible-firmware-interface--uefi--bios?lang=EN | |
# Update kernel (is this mandatory?) | |
( mkdir /tmp/kernel-4.10.6 | |
cd /tmp/kernel-4.10.6 | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.6/linux-headers-4.10.6-041006_4.10.6-041006.201703260832_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.6/linux-headers-4.10.6-041006-generic_4.10.6-041006.201703260832_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.6/linux-image-4.10.6-041006-generic_4.10.6-041006.201703260832_amd64.deb |
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 | |
echo """[ req ] | |
default_bits = 2048 # RSA key size | |
encrypt_key = no # Protect private key | |
default_md = sha512 # MD to use | |
prompt = no # Prompt for DN | |
distinguished_name = codesign_dn # DN template | |
[ codesign_dn ] | |
commonName = "dlv-cert" |
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
install PostgreSQL 9 in Mac OSX via Homebrew | |
Mac OS X Snow Leopard | |
System Version: Mac OS X 10.6.5 | |
Kernel Version: Darwin 10.5.0 | |
Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
sh-3.2# brew install postgresql |
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 | |
role=citus | |
database=citus | |
port=5432 | |
workers=2 | |
timeout=30 | |
# start cluster with 2 workers | |
[ -f docker-compose.yml ] || wget https://raw.githubusercontent.com/citusdata/docker/master/docker-compose.yml |
Git hooks for better pivotal integration:
pre-commit
:- prevents commiting on a branch that is not suffixed by an issue number. Some special branches (
develop
,master
) andhotfix
es are not constrained - lints modified python files and exits upon non correctly formatted modules
- other formats (js, scss) have pending code that is not currently called as the workflow for front code is not clear
- prevents commiting on a branch that is not suffixed by an issue number. Some special branches (
prepare-commit-msg
: prepend issue number to commit message if it's missing and if it is set in the branch name (seepre-commit
hook)post-checkout
: [optional] automatically update submodules when checkouting a branch (requires to define theAUTO_SUBMODULE_UPDATE
environment variable)
For easy setup: