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 | |
function start_sshagent() | |
{ | |
ssh-agent > ~/.sshagent | |
. ~/.sshagent | |
} | |
function check_sshagent() { | |
ps -p $SSH_AGENT_PID > /dev/null |
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
This isn't 100%, but it will get you most of the way there (assumes bash 4+): | |
(\ | |
echo 'url,type,username,password,hostname,extra,name,grouping' ; \ | |
cat KEEPER_BACKUP_FILE | sed -e s/' '/'|'/g -e s/','//g | (\ | |
while read LINE; do \ | |
IFS='|' read -r -a fields <<< "$LINE"; \ | |
type="server"; \ | |
if [[ "${fields[4]}" == "" ]]; then \ | |
type=''; \ |
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
##### First we build from scratch ... | |
####################################### | |
akesterson@akesterson-pc:~/source/upstream/git/akesterson/piquant$ make clean all | |
rm -f boot.bin asm/*o src/*o | |
bcc -ansi -3 -c -o src/kernel.o src/kernel.c | |
ld86 -T0x1000 -M -o kernel.bin src/kernel.o | |
kernel _printString 0 0000101b R | |
kernel _main 0 00001049 R | |
kernel _printChar 0 00001000 R |
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
Using flask-sqlalchemy 2.0 with sqlalchemy 0.9.6, and cx_Oracle 5.1.3. | |
The sqlalchemy engine works 100% for the other bind I'm using (a MySQL database). But I'm only using ORM on the Oracle bind. | |
When declaring a ORM class like this (names are redacted): | |
class ORMObject(db.Model): | |
__bind_key__ = 'bind_name' | |
__table_args__ = {'schema': 'SPACE'} | |
__tablename__ = 'TABLE_NAME' |
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
>>> def wat(): | |
... raise Exception("ARGH") | |
... yield 0 | |
... yield 1 | |
... yield 2 | |
... | |
>>> wat() | |
<generator object wat at 0x2e62500> |
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
if [ ... ]; then | |
do some shit | |
.... | |
.... | |
.... | |
.... | |
.... | |
if [ ... ]; then | |
do more shit | |
... |
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
TL;DR - It was proving to be more buildsystem than I needed, | |
and I had found that there were other buildsystems that met my needs | |
that I felt were lighter and more nimble. It's still a fine product | |
that I continue to recommend to this day, I just no longer see it as | |
"The One True Way". | |
========================= | |
1: Bamboo was consuming a significant amount of system resources, |
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
# Add this code to your /etc/mock/site-defaults.cfg file, and then | |
# all of your mock builds will take place in ${HOME}/.mockbuild/CONFIG. | |
# This will allow many users to build the same package config (-r) | |
# at any given time; so john, tom, dick and harry can build epel-5-noarch | |
# at the same time, and john can build epel-5-noarch, epel-6-x86_64, | |
# and fedora-13-x86_64 at the same time, because they all have their own | |
# build basedir. | |
# Note that this is very linux specific, YMMV on other platforms. |
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
Vagrant::Config.run do |config| | |
config.vm.customize ["modifyvm", :id, "--name", "macosx.aklabs.net", "--memory", 2048] | |
config.vm.customize ["modifyvm", :id, "--nic2", 'bridged'] | |
config.vm.customize ["modifyvm", :id, "--bridgeadapter2", 'eth0'] | |
config.vm.provision :shell, :inline => 'sudo networksetup -detectnewhardware' | |
config.vm.provision :shell, :inline => 'sudo networksetup -setdhcp "Ethernet 2"' | |
config.vm.provision :shell, :inline => 'sudo pmset sleep 0' | |
config.vm.provision :shell, :inline => 'sudo pmset displaysleep 0' |
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
/etc/hiera.yaml config: | |
--- | |
:backends: | |
- yaml | |
:hierarchy: | |
- %{fqdn} | |
- defaults |
NewerOlder