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
# Taken from https://dev.to/ericchapman/my-beloved-django-cheat-sheet-2056 | |
# Create et access project folder | |
~$ mkdir project_name | |
~$ cd project_name | |
# Create Python virtual env | |
~$ python3 -m venv venv | |
# Activate virtual env |
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
{ | |
"$id": "https://example.com/person.schema.json", | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"title": "Person", | |
"type": "object", | |
"properties": { | |
"firstName": { | |
"type": "string", | |
"description": "The person's first name." | |
}, |
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
# Remove folder (tested) | |
git filter-branch --tree-filter 'rm -rf FOLDER_PATH' --prune-empty HEAD | |
# Remove file (not tested) | |
git filter-branch --force --index-filter \ | |
"git rm --cached --ignore-unmatch FILE_PATH" \ | |
--prune-empty --tag-name-filter cat -- --all | |
# Remove text (not tested) | |
git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/ORIGINAL_PASSWORD/NEW_PASSWORD/g' {} \;" |
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
export ANDROID_HOME=/YOUR_PATH_TO/android-sdk | |
export PATH=$ANDROID_HOME/platform-tools:$PATH | |
export PATH=$ANDROID_HOME/tools:$PATH |
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
{ | |
"token": "c3fcd3d76192e4007dfb496cca67e13b" | |
} |
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
# To use save this file, open a terminal at its location and execute `ruby request.rb` | |
require 'net/http' | |
require 'json' | |
url = "https://api.spotify.com/v1/search?type=artist&q=bonobo" | |
uri = URI(url) | |
request = Net::HTTP::Get.new(uri) | |
request["MyCustomHeader"] = "abcde" |
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
# dSYMs | |
# part 1 | |
ZIPPED_DSYM="${BUILD_FILE_NAME}.dSYM.zip" | |
cd "${BUILD_FILE_NAME}.xcarchive/" | |
zip -r "../$ZIPPED_DSYM" "dSYMs/" | |
cd .. | |
# Deploy |
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
brew update && brew upgrade openssl | |
rvm osx-ssl-certs update all | |
rvm reinstall ruby-2.2.3 --with-openssl-dir=/usr/local |
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 | |
set -eo pipefail | |
IFS=$'\n\t' | |
# Constants | |
NOW=$(date +%s) | |
BUILD_FILE_NAME="MyApp-${NOW}" | |
SCHEME="MyApp" | |
WORKSPACE="MyApp" | |
PROJECT="MyApp" |
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
# Xcode | |
.DS_Store | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
NewerOlder