Skip to content

Instantly share code, notes, and snippets.

@kodavn
kodavn / 0-README.md
Created May 14, 2020 15:25 — forked from abhijeetchopra/0-README.md
Creating automatic scheduled backup copies of your Google Sheets using Google Apps Script

How to "Schedule Automatic Backups" of your Google Sheets

This tutorial demonstrates how to use Google Apps Script to:

  • Create copies of the Google Sheet in the desired destination folder automatically at set intervals.

  • Append the time stamp with each backup file's name.

  • Adjust time trigger for backing up every day/hour/minute.

// ==UserScript==
// @name Facebook Sidebar Cleaner
// @namespace https://junookyo.blogspot.com/
// @version 0.1
// @description Remove useless section on Sidebar
// @author Juno_okyo
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
@kodavn
kodavn / mount_nas
Created September 3, 2020 09:51 — forked from iskl/mount_nas
mount GoFlex Home to Raspberry Pi
sudo mount -t cifs -o rw,soft,rsize=8192,wsize=8192,username=[username],password=[password] "//[nasip]/GoFlex Home Public/" /media/Public
@kodavn
kodavn / install_rtorrent.sh
Created November 22, 2020 08:06 — forked from 0x2539/install_rtorrent.sh
Script to install rtorrent and rutorrent for raspberry pi
-#!/bin/bash
VERSION="1.0, 27 January 2013"
# INTRODUCTION
# This script installs and configures rTorrent on a Raspberry Pi.
# Included: ruTorrent, nginx, php5-fpm
# HOW TO USE THIS SCRIPT
# Log in to the RPi.
# Open a terminal if you are in GUI mode.
@kodavn
kodavn / install.sh
Created August 9, 2021 15:16 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@kodavn
kodavn / create-folder.py
Created August 22, 2021 06:51 — forked from keithweaver/create-folder.py
Create a folder with Python
import os
def createFolder(directory):
try:
if not os.path.exists(directory):
os.makedirs(directory)
except OSError:
print ('Error: Creating directory. ' + directory)