Skip to content

Instantly share code, notes, and snippets.

View ignazioc's full-sized avatar
:octocat:

Ignazio ignazioc

:octocat:
View GitHub Profile
<?xml version='1.0' encoding='UTF-8'?>
<ads xmlns="http://admarkt.marktplaats.nl/schemas/1.0">
<ad><vendorId>1000090947::15848604</vendorId><title>MSI Prestige PS341WU Gaming-LED-Monitor (86,36 cm/34 ", 5120 x 2160 Pixel, 5 ms Reaktionszeit, 60 Hz)</title><description>Leistung, Energieverbrauch &amp; Umwelt Energieeffizienzklasse (Skala) , G (A bis G), |Bildschirmdiagonale in Zentimeter , 86,36 cm, |Bildschirmdiagonale in Zoll , 34 ", |Leistungsaufnahme im Ein-Zustand , 59 W, |Energieverbrauch in kWh im Jahr , 87, |Leistungsaufnahme im Stand-by , 0,31 W, |Leistungsaufnahme im Aus-Zustand , 0,24 W, |Bildschirmauflösung in Pixel , 5120 x 2160 px, |Modellbezeichnung , Prestige PS341WU, |Energieverbrauch im Ein-Zustand pro 1000 h , 50, | Allgemein Funktionen Monitor , Picture-by-Picture Picture-in-Picture, |Standard Wandhalterung (VESA) , 100 x 100 mm, |Lieferumfang , HDMI-Kabel Display Port-Kabel Audio-Kabel USB-Kabel Netzteil Garantiekarte Kurzanleitung, |Farbe , weiß, |Grundfarbe , weiß, | Stromversorgung St
@ignazioc
ignazioc / xcodeswitch.rb
Last active September 12, 2019 08:16
Switch between xcode versions
#!/usr/bin/ruby
xcodes = Dir["/Applications/Xcode*"]
if xcodes.count.zero?
puts "No Xcode installed"
exit 0
end
selected_index = -1
loop do
import Cocoa
var locales = [
"mr",
"bs",
"ee_TG",
"ms",
"kam_KE",
"mt",
"ha",
#!/usr/bin/env ruby
require 'FileUtils'
require 'json'
require 'date'
Dir.chdir('ios-client') do
system("git checkout develop")
# Collect the commits
commit_list = []
//
// ViewController.swift
// BackgroundExample
//
// Created by Calo, Ignazio on 16.11.18.
// Copyright © 2018 eBay Kleinanzeigen. All rights reserved.
//
import UIKit
#! /bin/bash
# rm -rf /
echo "You should never execute remote scripts"
//: Playground - noun: a place where people can play
import UIKit
import XCTest
class UserManagerTests: XCTestCase {
func testConvertToHtml() {
self.measure {
let htmlString = String.init(repeating: "<p>I am normal</p><b>asdfasd</b><i>asdfasdfa</i>", count: 1000)
_ = htmlString.convertHtml()
disabled_rules: # rule identifiers to exclude from running
- line_length
- function_body_length
- cyclomatic_complexity
- multiple_closures_with_trailing_closure
- xctfail_message
# Swift 3 rules that do not make sense for Swift 2.3
- implicit_getter
disabled_rules: # rule identifiers to exclude from running
- line_length
- function_body_length
- cyclomatic_complexity
- multiple_closures_with_trailing_closure
- xctfail_message
# Swift 3 rules that do not make sense for Swift 2.3
- implicit_getter
for server in macmini07-ios macmini08-android macmini09-ios macmini10-android macmini11-ios macmini12-android;
do
ssh -i ~/.ssh/remoteJenkins jenkins@${server} < script.sh
scp -i ~/.ssh/remoteJenkins jenkins@${server}:~/report.txt ./report_${server}.txt
for REPORT in `ls report*`;
do
echo "$REPORT" && cat $REPORT | grep "Model: APPLE SSD"
done
done