Skip to content

Instantly share code, notes, and snippets.

View ozanerturk's full-sized avatar
😝
09:00-18:00 at work GMT +3

Ozan ERTÜRK ozanerturk

😝
09:00-18:00 at work GMT +3
  • sensemore.io
  • istanbul
View GitHub Profile
@KenjiOhtsuka
KenjiOhtsuka / copy_files.gs
Last active June 7, 2025 07:36
Google Apps Script to Copy Folder Recursively
/**
This is a code of Google Apps Script for copying google drive folder content to other folder.
## Which situation the code resolve.
Google doesn't allow to move folder content to other folder which is managed by
other organization according to the policy of the GSUITE organization.
And, Google doesn't allow to change the content owner to the user in other
organizations.
@ozanerturk
ozanerturk / signalGeneration.py
Last active August 10, 2020 19:24
Python simple signal generator
import numpy as np
samplingFrequency = 3000
referenceFrequency = 166
time = 2
harmonic_coefficients = [
#harmoic, amplitude
(0.5, 0.6),
(1, 1),
@burak-kara
burak-kara / reset.gs
Last active February 13, 2026 22:49
Google Drive: Unshare, Copy & Reclaim Ownership
/**
* =============================================================================
* Google Drive: Unshare, Copy & Reclaim Ownership
* =============================================================================
*
* PURPOSE:
* Processes a shared Google Drive folder tree and:
* 1. Removes all sharing permissions from files/folders you own.
* 2. Copies files you don't own into folders you do own, then removes
* the shared originals from your view.
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active February 19, 2026 10:34
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@vanillajonathan
vanillajonathan / Index.cshtml
Last active November 5, 2024 21:00
TinyMCE image upload on ASP.NET MVC
<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<script>
tinymce.init({
selector: 'textarea',
images_upload_url: "TinyMceUpload",
});
function upload(form) {
tinymce.activeEditor.uploadImages(function (success) {
form.submit();
@robmiller
robmiller / git-cleanup-repo
Last active October 14, 2025 20:53
A script for cleaning up Git repositories; it deletes branches that are fully merged into `origin/master`, prunes obsolete remote tracking branches, and as an added bonus will replicate these changes on the remote.
#!/bin/bash
# git-cleanup-repo
#
# Author: Rob Miller <rob@bigfish.co.uk>
# Adapted from the original by Yorick Sijsling
git checkout master &> /dev/null
# Make sure we're working with the most up-to-date version of master.
git fetch