Skip to content

Instantly share code, notes, and snippets.

View ohcibi's full-sized avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
require 'capybara'
require 'capybara/dsl'
require 'capybara/mechanize'
require 'capybara/mechanize/cucumber'
require 'rspec'
require 'pry'
Capybara.app_host = 'http://127.0.0.1'
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :firefox)
uri = URI.parse "http://192.168.137.151:8000/test"
http = Net::HTTP.new uri.host, uri.port
req = Net::HTTP::Post.new uri.request_uri
req.basic_auth 'admin', 'admin'
req.body = rbody
resp = http.request req
\begin{figure}[h!]
\begin{center}
\includegraphics{image.png}
\end{center}
\caption{Your Caption\label{fig:yourlabel}}
\end{figure}
@ohcibi
ohcibi / log
Created November 17, 2012 11:14
[2012/11/17 12:12:19.076962, 1] smbd/service.c:678(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
# Enable these netcfg profiles at boot time.
# - prefix an entry with a '@' to background its startup
# - set to 'last' to restore the profiles running at the last shutdown
# - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(last)
# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"
order: (order) ->
orders = @get 'orders'
order_item = orders.where(id: order.id, vari: order.vari).pop()
if order_item? then order_item.set 'amount', order_item.get('amount') + 1
else orders.add new Poptik.Models.OrderItem id: order.id, amount: 1, vari: order.vari
[ 58.680]
X.Org X Server 1.13.0
Release Date: 2012-09-05
[ 58.839] X Protocol Version 11, Revision 0
[ 58.893] Build Operating System: Linux 3.6.3-1-ARCH x86_64
[ 58.948] Current Operating System: Linux LIPC0009 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64
[ 58.948] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=aa7414db-dc00-49d9-bed9-c96aa54f0da5 ro quiet
[ 59.061] Build Date: 08 November 2012 07:09:29PM
[ 59.115]
[ 59.171] Current version of pixman: 0.28.0
-- Logs begin at Fri, 2014-11-09 16:54:03 CET, end at Fri, 2012-11-16 13:32:35 CET. --
Nov 26 10:48:01 LIPC0009 systemd-journal[134]: Allowing runtime journal files to grow to 187.9M.
Nov 26 10:48:01 LIPC0009 kernel: Initializing cgroup subsys cpuset
Nov 26 10:48:01 LIPC0009 kernel: Initializing cgroup subsys cpu
Nov 26 10:48:01 LIPC0009 kernel: Linux version 3.6.6-1-ARCH (tobias@T-POWA-LX) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012
Nov 26 10:48:01 LIPC0009 kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=aa7414db-dc00-49d9-bed9-c96aa54f0da5 ro quiet
Nov 26 10:48:01 LIPC0009 kernel: e820: BIOS-provided physical RAM map:
Nov 26 10:48:01 LIPC0009 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
Nov 26 10:48:01 LIPC0009 kernel: BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
Nov 26 10:48:01 LIPC0009 kernel: BIOS-e820: [mem 0x00000000000e8000-0x00000000000fffff] reserved
@ohcibi
ohcibi / DELETE
Last active December 10, 2015 15:09
>> jQuery.post('/kc/glasses.json', {_method: 'DELETE'});
# {"code":"404","url":"\/kc\/glasses.json","name":"Controller class Controller could not be found."}
>> jQuery.get('/kc/glasses.json');
# works
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform