This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func frendlyDeviceNames(forModel model: String) -> String { | |
let frendlyNames: [String: String] = [ | |
// * Simulator | |
"i386": "Simulator", | |
"x86_64": "Simulator", | |
"arm64": "Simulator", | |
// * Apple TV | |
"AppleTV1,1": "Apple TV (1Gen)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i386 : iOS Simulator 32-bit | |
x86_64 : iOS Simulator 64-bit | |
iPhone1,1 : iPhone 1st Gen | |
iPhone1,2 : iPhone 3G 2nd Gen | |
iPhone2,1 : iPhone 3GS 3rd Gen | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 (GSM) Rev A | |
iPhone3,3 : iPhone 4 (CDMA) | |
iPhone4,1 : iPhone 4s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This shell script is made by SyneArt <[email protected]> | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |----------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |--------------------|----------------|------|-------------| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_platform(:ios) | |
platform :ios do | |
before_all do | |
setup_circle_ci | |
prepare_certificates | |
cocoapods | |
end | |
private_lane :prepare_certificates do |options| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build-and-test: | |
macos: | |
xcode: "9.3.0" | |
working_directory: ~/yourProyect | |
environment: | |
FASTLANE_LANE: all | |
shell: /bin/bash --login | |
steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" rwlock.py | |
A class to implement read-write locks on top of the standard threading | |
library. | |
This is implemented with two mutexes (threading.Lock instances) as per this | |
wikipedia pseudocode: | |
https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_two_mutexes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Install the following requirements into your virtual environemnt | |
`pip install click redis` | |
Usage: | |
To load data into redis | |
python redis_dump.py load [filepath] | |
To dump data into redis | |
python redis_dump.py dump [filepath] --search '*txt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message Dog { | |
} | |
message Cat { | |
} | |
message Elephant { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using Microsoft.Win32.SafeHandles; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace Test | |
{ |