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/bash | |
DB_PATH="/path/to/sqlite/database.db" # Path to your SQLite database | |
TIMESTAMP=$(date +"%Y%m%d_%H%M%S") # Timestamp for the backup | |
ROLLING_LIMIT=30 # Number of backups to keep | |
BACKUP_DIR="/tmp" # Temporary local backup directory | |
BACKUP_NAME="backup_$TIMESTAMP.sqlite" # Backup filename | |
REMOTE_NAME="remote" # Name of your rclone remote | |
REMOTE_PATH="backups" # Remote bucket or folder |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
"cosmossdk.io/simapp" | |
"github.com/cosmos/cosmos-sdk/codec" | |
codectypes "github.com/cosmos/cosmos-sdk/codec/types" |
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
// | |
// Copyright © 2016 Tanner Bennett. All rights reserved. | |
// | |
import Foundation | |
typealias ResponseParserBlock = (ResponseParser) -> Void | |
class ResponseParser { | |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
import XCPlayground | |
XCPlaygroundPage.currentPage.needsIndefiniteExecution = true | |
var container = UIView(frame: CGRect(x: 0, y: 0, width: 400, height: 400)) | |
container.backgroundColor = UIColor.greenColor() | |
XCPlaygroundPage.currentPage.liveView = container |
GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)
- not equal
~=
- logical AND
&&
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
# import luigi modules | |
import luigi | |
from luigi.contrib import redshift | |
from luigi import configuration, s3 | |
# import python core modules | |
import os | |
import shutil | |
import datetime |
NewerOlder