Skip to content

Instantly share code, notes, and snippets.

@krzysdb
krzysdb / brew_reinstall_readline.txt
Created October 2, 2019 19:25
Legacy readline 7.0 installation log
[USERNAME] Formula:$ brew reinstall readline
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
==> Reinstalling readline
Warning: Your Xcode (7.3.1) is outdated.
@krzysdb
krzysdb / readline.rb
Created October 2, 2019 19:18
Legacy configuration for homebrew readline 7.0 package
class Readline < Formula
desc "Library for command-line editing"
homepage "https://tiswww.case.edu/php/chet/readline/rltop.html"
url "https://ftp.gnu.org/gnu/readline/readline-7.0.tar.gz"
mirror "https://ftpmirror.gnu.org/readline/readline-7.0.tar.gz"
version "7.0.1"
sha256 "750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334"
%w[
001 9ac1b3ac2ec7b1bf0709af047f2d7d2a34ccde353684e57c6b47ebca77d7a376
@krzysdb
krzysdb / vim.txt
Last active August 18, 2018 16:26
##### vim koans
# https://sanctum.geek.nz/arabesque/vim-koans/
# https://sanctum.geek.nz/etc/emperor-sh-and-the-traveller.txt
# https://blog.samwhited.com/2015/04/the-dharma-of-vi/
#### remapping keys links
# remap escape - https://news.ycombinator.com/item?id=13100718
# spacebar leader - https://news.ycombinator.com/item?id=6916194
# https://www.reddit.com/r/vim/comments/4d6iym/what_do_you_all_do_with_caps_lock_control_and/
# http://vim.wikia.com/wiki/Avoid_the_escape_key
@krzysdb
krzysdb / pom.xml
Created December 20, 2015 21:37 — forked from cxxr/pom.xml
Example Root POM
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>root-pom</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Root POM</name>
<url>http://git.example.com/rootpom.git</url>
@krzysdb
krzysdb / DO.NOT.USE.elcapitan.bootable.iso.sh
Last active December 8, 2015 11:17
Create Bootable ISO from El Capitan App.(PROBLEMS: Dvd is created but installer not work properly)
#!/usr/bin/env bash
# Original: http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/
echo "Mount the installer image"
sudo hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
echo "Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map"
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J
import sqlite3
# open connection and get a cursor
conn = sqlite3.connect(':memory:')
c = conn.cursor()
# create schema for a new table
c.execute('CREATE TABLE IF NOT EXISTS sometable (name, age INTEGER)')
conn.commit()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Frédéric Grosshans, 19 January 2012
Nathan R. Yergler, 6 June 2010
This file does not contain sufficient creative expression to invoke
assertion of copyright. No warranty is expressed or implied; use at
your own risk.
@krzysdb
krzysdb / WebDriverBackedSelenium_simple.log
Created January 11, 2012 18:32
WebDriverBackedSelenium simple test console output
Closing connections idle longer than 100 MILLISECONDS
Closing connections idle longer than 100 MILLISECONDS
Jan 11, 2012 6:27:40 PM org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [null, newSession {"desiredCapabilities":"Capabilities [{platform=ANY, browserName=firefox, version=}]"}]
Get connection: HttpRoute[{}->http://127.0.0.1:4444], timeout = 120000
[HttpRoute[{}->http://127.0.0.1:4444]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [HttpRoute[{}->http://127.0.0.1:4444]][null]
Available capacity: 2000 out of 2000 [HttpRoute[{}->http://127.0.0.1:4444]][null]
Creating new connection [HttpRoute[{}->http://127.0.0.1:4444]]
Connecting to 127.0.0.1:4444
@krzysdb
krzysdb / WebDriverBackedSelenium_simple.java
Created January 11, 2012 18:29
WebDriverBackedSelenium simple test
import java.net.MalformedURLException;
import java.net.URL;
import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverBackedSelenium;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
@krzysdb
krzysdb / gist:1595837
Created January 11, 2012 17:50
Selenium 2 exxcessive console output
Jan 11, 2012 5:49:00 PM org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [null, newSession {"desiredCapabilities":"Capabilities [{platform=ANY, browserName=firefox, version=}]"}]
Get connection: HttpRoute[{}->http://10.149.0.254:4444], timeout = 120000
[HttpRoute[{}->http://10.149.0.254:4444]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
No free connections [HttpRoute[{}->http://10.149.0.254:4444]][null]
Available capacity: 2000 out of 2000 [HttpRoute[{}->http://10.149.0.254:4444]][null]
Creating new connection [HttpRoute[{}->http://10.149.0.254:4444]]
Connecting to 10.149.0.254:4444
CookieSpec selected: best-match
Auth cache not set in the context