Skip to content

Instantly share code, notes, and snippets.

View JoniWeiss's full-sized avatar

Joni Weiss JoniWeiss

View GitHub Profile
@JoniWeiss
JoniWeiss / google apps script deleteOldFiles
Created November 14, 2021 17:50
Google Apps Script - Delete old files from a folder in google drive
//
// From source: https://blog.ss88.us/delete-files-from-google-drive-folders-after-x-days-apps-script
//
function DeleteOldFiles() {
var Folders = new Array(
'FOLDER_ID_HERE',
'FOLDER_ID_HERE'
);
var Files;

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@JoniWeiss
JoniWeiss / README.md
Created August 28, 2017 21:12 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@JoniWeiss
JoniWeiss / update-post-urls.sql
Created May 23, 2017 21:09
WordPress: Replace URLs in the database when moving between servers
-- Run this to replace URLs in the database when moving a WordPress blog from
-- one URL to another.
-- Replace "wp_" with the table prefix you have chosen. (If it's "wp_" you
-- should really change it for added security).
-- You may need to update other tables/columns as well - I normally use
-- phpMyAdmin's database search tool to search for the old URL.
-- Note: Don't replace the guid field if you're changing the URL of a live site,

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@JoniWeiss
JoniWeiss / README-Template.md
Last active April 11, 2017 21:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@JoniWeiss
JoniWeiss / 1_Create_Server_DigitalOcean.md
Last active April 3, 2017 22:21
Setting up NodeJS Server

Create an account on Digital Ocean

Create droplet using latest 64-bit version of Ubuntu

Install ssh public key and test ssh connectivity

ssh -i ~/.ssh/my_key root@138.68.10.55

Create new user

@JoniWeiss
JoniWeiss / README.md
Created March 2, 2017 21:20 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@JoniWeiss
JoniWeiss / intro-to-git--SLC-JS-Learners--201508.md
Created February 2, 2017 19:33
Introduction to git - for SLC-JS-Learners 2015-08 meetup

Intro to git

  1. create/log-into your http://github.com account

  2. create/log-into your http://c9.io account, using your github account credentials

  3. from your C9 dashboard, create a new workspace, name it "intro-to-git", leave all other options at default values, then "Create workspace"

  4. in github, create a "New repository" that is also named "intro-to-git"

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})