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 May 20, 2025 12:47
Google Drive - Remove Sharing & Access Permissions from folders, subfolders and files. Note that Google Apps Script commands might be changed after this version.
// Note that this script will remove all permissions of all files and subfolders
// (including files in subfolders) of the given folder
// https://drive.google.com/drive/folders/abcdefgh
const id = "abcdefgh";
function start() {
const folder = DriveApp.getFolderById(id);
getSubFolders(folder);
// At the end, reset for parent folder
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active August 3, 2025 21:46
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 November 24, 2024 19:55
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 <[email protected]>
# 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