Skip to content

Instantly share code, notes, and snippets.

👨‍💻
I may take a little to respond.

Leonardo Cardoso LeonardoCardoso

👨‍💻
I may take a little to respond.
Block or report user

Report or block LeonardoCardoso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LeonardoCardoso
LeonardoCardoso / feed.json
Created Dec 16, 2019
Jekyll JSON RSS Feed
View feed.json
---
layout: null
permalink: /feed.json
---
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.title }}",
"description": "{{ site.description }}",
"home_page_url": "{{ '/' | absolute_url }}",
"feed_url": "{{ page.url | absolute_url }}",
@LeonardoCardoso
LeonardoCardoso / feed.xml
Last active Jan 1, 2020
Jekyll XML RSS Feed
View feed.xml
---
layout: null
permalink: /feed.xml
---
{% assign feed_url = page.url | absolute_url %}<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<subtitle>By {{ site.author.name }}</subtitle>
<link rel="alternate" type="text/html" href="{{ site.url }}" />
<link rel="self" type="application/atom+xml" href="{{ feed_url }}" />
@LeonardoCardoso
LeonardoCardoso / simulatorFullScreen.sh
Last active Nov 25, 2019
iOS Simulator Full screen
View simulatorFullScreen.sh
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES
View bind-frameworks.sh
#!/usr/bin/env bash
PRODUCTS_PATH=$1
PROJECT_NAME=$2
VERSION=$3
if (( $# != 3 )); then
echo "Wrong usage. Please pass the correct arguments.
>> ./bind-frameworks PRODUCTS_PATH PROJECT_NAME VERSION"
else
@LeonardoCardoso
LeonardoCardoso / update_version.sh
Created May 14, 2018
Update version on your project using a single command
View update_version.sh
function updateversion() {
OLD="$1"
NEW="$2"
grep -rl "$OLD" . --exclude-dir={"Build","libs","Pods",".git"} --exclude={"Podfile.lock","CHANGELOG.md","update-version.sh"} | xargs sed -i.bak "s/$OLD/$NEW/g";
find . -type f -name '*.bak' -delete
}
@LeonardoCardoso
LeonardoCardoso / andaction.sh
Last active Oct 30, 2018
AndAction - Script to Generate a Nice Folder Structure for Cinematography Projects
View andaction.sh
#!/bin/bash
### Functions
trim() {
local trimmed="$1"
# Strip leading space.
trimmed="${trimmed## }"
# Strip trailing space.
trimmed="${trimmed%% }"
@LeonardoCardoso
LeonardoCardoso / checkBitrate.sh
Last active Oct 30, 2018
Check Bitrate by afinfo
View checkBitrate.sh
for i in **/*.mp3; do afinfo "$i" |grep "bit rate" ; done
@LeonardoCardoso
LeonardoCardoso / bitrateUp.sh
Last active Oct 30, 2018
Increate bitrate by ffmpeg
View bitrateUp.sh
for f in *; do
if [[ -d $f ]]; then
cd $f
for i in **/*.mp3; do ffmpeg -i "$i" -codec:a libmp3lame -b:a 192k "0-$i" ; done
cd ../
else
for i in **/*.mp3; do ffmpeg -i "$i" -codec:a libmp3lame -b:a 192k "0-$i" ; done
fi
done
@LeonardoCardoso
LeonardoCardoso / README.md
Last active Oct 30, 2018
RXMVVM Shell function
View README.md

Usage

$ rxmvvm "AddressList" "LightPass" "Leonardo Cardoso" "1aim.com" .

  • $1 = Name of File
  • $2 = Name of Project
  • $3 = Name of Author
  • $4 = Website
  • $5 = Path
@LeonardoCardoso
LeonardoCardoso / GPG-Tower
Last active Jan 20, 2020
How to setup Tower to use the GPG Suite
View GPG-Tower
# GPG on Tower
You can’t perform that action at this time.