Skip to content

Instantly share code, notes, and snippets.

View aniltv06's full-sized avatar

Anil T V aniltv06

View GitHub Profile
@yorammi
yorammi / 2repos-sync.sh
Last active January 11, 2024 07:25
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
#!/bin/bash
# REPO_NAME=<repo>.git
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME
# REPO1_URL=git@<host>:<project>/$REPO_NAME
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"
@hashemi
hashemi / JSONSerialization2.swift
Created February 25, 2017 05:09
Modified copy of Apple's Swift implementation of the JSONSerialization class that parses numbers as Decimal's instead of Int's or Double's
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
// This is a modified copy which does deserialization only (no serialization) and