Inspired by parmentf/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Inspired by parmentf/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
Remember to replace com.domain.appname with your actual app package name
adb shell am force-stop com.domain.appname
adb shell am start -n com.domain.appname/com.domain.appname.MainActivity
| # Add apt.llvm.org repository and install clang | |
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - | |
| sudo apt-add-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" | |
| sudo apt-get update | |
| sudo apt-get install -y clang clang-format clang-tidy lldb libc++-8-dev libc++abi-8-dev | |
| # Check version | |
| clang --version | |
| clang++ --version |
Requirements:
Device should be a rooted (simulator’s are rooted by default)
adbd should be started as root. (Rub command: adb root )
Now, send local push message using command:
| // Created by react-native-create-bridge | |
| // import RCTBridgeModule | |
| #if __has_include(<React/RCTBridgeModule.h>) | |
| #import <React/RCTBridgeModule.h> | |
| #elif __has_include(“RCTBridgeModule.h”) | |
| #import “RCTBridgeModule.h” | |
| #else | |
| #import “React/RCTBridgeModule.h” // Required when used as a Pod in a Swift project | |
| #endif |
| #!/bin/bash | |
| # Script to disable the iOS Simulator app from showing the "Do you want the application xxxx to accept incoming network connections?" pop-up every time the app is run | |
| echo "> Enter password to temporarily shut firewall off" | |
| sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | |
| echo "> Add Xcode as a firewall exception" | |
| /usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/Xcode.app/Contents/MacOS/Xcode |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| require 'xcodeproj' | |
| unless ARGV.count == 2 | |
| puts "Usage: xcode_set_development_region.rb [project] [region]" | |
| exit(1) | |
| end |