Skip to content

Instantly share code, notes, and snippets.

View elpsk's full-sized avatar
:octocat:
I may be slow to respond.

alberto elpsk

:octocat:
I may be slow to respond.
View GitHub Profile
@elpsk
elpsk / Fastfile
Last active March 4, 2020 07:36
Gitlab-ci.yml and Fastlane
# update_fastlane
default_platform(:ios)
platform :ios do
def build_appname( configuration, schema, export_method )
build_app(
workspace: "appname.xcworkspace",
configuration: configuration,
scheme: schema,
1- Generating a Private Key:
`openssl genrsa -aes256 -out private_key.pem 2048`
2- Generating a Public Key:
`openssl rsa -pubout -in private_key.pem -out public_key.pem`
[
@"accelerator",
@"airbag",
@"alarm",
@"alternator",
@"antenna",
@"armrest",
@"auto",
@"automobile",
@"axle",
[
@"accelerator",
@"airbag",
@"alarm",
@"alternator",
@"antenna",
@"armrest",
@"auto",
@"automobile",
@"axle",
@elpsk
elpsk / HotspotHelper.swift
Last active May 24, 2021 10:47
Connect to Wifi network from code – Swift
//
// HotspotHelper.swift
// Created by Pasca Alberto, IT on 03/11/2019.
// https://www.albertopasca.it/
//
// MORE details on:
// https://www.albertopasca.it/whiletrue/connect-to-wifi-network-from-code-swift/
//
import NetworkExtension
@elpsk
elpsk / NEHotspotConfigurationManager.swift
Created August 9, 2019 08:36 — forked from kraigspear/NEHotspotConfigurationManager.swift
Connect to a WIFI hotspot programmatically in iOS 11
//
// ViewController.swift
// NetworkTest
//
// Created by Kraig Spear on 10/10/17.
// Copyright © 2017 spearware. All rights reserved.
//
import UIKit
import NetworkExtension
@elpsk
elpsk / .swiftlint.yml
Last active April 20, 2019 14:01
My swift rules for .swiftlint.yml
analyzer_rules:
- unused_import
- unused_private_declaration
opt_in_rules:
- array_init
- attributes
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
@elpsk
elpsk / android-screenshot.sh
Created October 5, 2018 10:05
Take a screenshot from Android connected device and save to macOS Desktop
$ adb shell screencap -p /sdcard/screencap.png
$ adb pull /sdcard/screencap.png /Users/pippo/Desktop/test.png
@elpsk
elpsk / android tap
Created October 5, 2018 09:52
Android send tap on screen
$ adb shell input tap x y
@elpsk
elpsk / screen.sh
Created October 5, 2018 09:34
MacOS programmatically take screenshot of a particular windows
$ /usr/sbin/screencapture
-r
-l$(osascript -e 'tell app "QuickTime Player" to id of window 1')
/Users/pippo/Desktop/test.png