Skip to content

Instantly share code, notes, and snippets.

View arthurdapaz's full-sized avatar
📱
Tweaking iOS and CI/CDs

Arthur da Paz arthurdapaz

📱
Tweaking iOS and CI/CDs
View GitHub Profile
@modestman
modestman / luna-vpn.sh
Last active February 4, 2022 07:47
Подключение к Endpoint Security VPN с помощью bash скрипта
#!/bin/bash
# Инструкция
#
# Для начала надо попросить у техподдрежки, чтобы сменили способ 2FA с приложения Multifactor на Google Authenticator.
# Во время настройки Google Authenticator сделайте скриншот QR кода и сохраните его в виде картинки.
# На сайте webqr.com можно расшифровать QR код и получить secret для генерации OTP.
# Пример: otpauth://totp/Luna:username?secret=TQPNWO37ZC6J6RG22MLSOIKQR5&algorithm=SHA256
#
# В приложении "Связка ключей" на macOS необходимо вручную создать две записи с паролями:
@richardsonlima
richardsonlima / start_vpn.expect
Created June 3, 2021 20:37 — forked from alecthegeek/start_vpn.expect
Start the CISCO VPN client from the command line
#!/usr/bin/env expect -f
# Start the CISCO VPN client on a Mac. Adapted from
# https://blog.felipe-alfaro.com/2014/05/23/automating-cisco-anyconnect-secure-mobility-client-on-mac-os-x/
set HOSTNAME vpn.server.com
set USER_NAME user.name
set PASSWORD password
spawn /opt/cisco/anyconnect/bin/vpn
@fevangelou
fevangelou / install_nano_on_macos_without_homebrew.sh
Last active January 3, 2024 14:43
Install Nano Editor (with syntax highlighting) on MacOS without using Homebrew [updated Jan 2024]
#!/bin/bash
# Install Nano Editor (with syntax highlighting) on MacOS without using Homebrew
# You can get the latest version number from https://www.nano-editor.org
# Instructions:
# - First off, download this Bash script from the browser & make it executable:
# $ chmod +x install_nano_on_macos_without_homebrew.sh
# - If you have "wget" installed (you most likely do), just run the script with:
# $ ./install_nano_on_macos_without_homebrew.sh