Skip to content

Instantly share code, notes, and snippets.

{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.4",
"body": [
@xoapit
xoapit / example.csv
Created June 8, 2023 02:11 — forked from JohnNeville/example.csv
Export and Import SSM Parameters To/From CSV files
Name Type KeyId LastModifiedDate LastModifiedUser Description Value AllowedPattern Tier Version Labels Policies DataType
/applications/qa/ourapplication/ExampleString String Not secret at all Standard text
/applications/qa/ourapplication/ExampleSecureString SecureString alias/ourapplication-qa-ssm Don't tell anyone but I like to scuba dive Standard text
using System;
class ArrayExample
{
static void Main()
{
char[] letters = { 'f', 'r', 'e', 'd', ' ', 's', 'm', 'i', 't', 'h'};
string name = "";
int[] a = new int[10];
for (int i = 0; i < letters.Length; i++)
{
@xoapit
xoapit / Sample Code .NET with bugs and errors
Created June 30, 2020 07:20
Create a sample app with some bugs and errors in it
using System;
using System.Collections.Generic;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;
using System.IO;
namespace Console_Parse_JSON
{
class Program
{
@xoapit
xoapit / Build React Native
Created September 8, 2019 09:59
Build APK file, install and uninstall app
Build Android :
----------------------------------
cd android && ./gradlew assembleRelease
adb -d install app-armeabi-v7a-release.apk
adb -d uninstall package
./gradlew app:assembleRelease -x lintVitalRelease
Build iOS:
-----------------------------
React-native run-ios —device “DeviceName”
@xoapit
xoapit / FabricPermission
Created September 8, 2019 09:56
/Fabric.framework/run: Permission denied
Open terminal and in your project go to the folder where fabric framework exist.if you are using pods then fabric will be inside pod folder.
Run below commands in terminal once you have reached the folder path to fabric
sudo chmod 777 run
sudo chmod 777 uploadDSYM
udo chmod 777 upload-symbols