Skip to content

Instantly share code, notes, and snippets.

View ilovefreesw's full-sized avatar
🎯
Focusing

Laxman ilovefreesw

🎯
Focusing
View GitHub Profile
@ilovefreesw
ilovefreesw / gist:cf66d97e56d2a7081d95a85715c46172
Created May 19, 2022 04:52
Here is a batch script to bulk split GIF files into their corresponding frames in JPG format. Based on FFmpeg. So make sure that FFmpeg command is available.
forfiles /s /m *.gif /c "cmd /c mkdir @FNAME && ffmpeg -i "@FILE" @FNAME/output_%%04d.jpg"
@ilovefreesw
ilovefreesw / unpinall.bat
Created December 23, 2021 12:55
A batch file to Unpin all Taskbar items in one go. Works on Windows 11 and Windows 10.
DEL /F /S /Q /A "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*"
REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /F
taskkill /F /IM explorer.exe & start explorer
@ilovefreesw
ilovefreesw / wptags.py
Created March 23, 2021 07:03 — forked from Suleman-Elahi/wptags.py
Get All WordPress Tags in Excel (CSV) using WordPress WP API v2
import requests
import csv
import time
from tqdm import tqdm
tags = {}
pages = int(requests.get('https://www.example.com/wp-json/wp/v2/tags').headers['X-WP-TotalPages'])
for i in tqdm(range(pages), ncols=65):
js = requests.get('https://www.example.com/wp-json/wp/v2/tags?page='+str(i+1)).json()
@ilovefreesw
ilovefreesw / code.gs
Last active March 23, 2021 07:13
Google Sheets Apps Script to get WordPress Post ID from URL
function getPostID(link) {
var slug = link.split("/").pop().split(";")[0].replace(".html","");
var url = 'https://www.ilovefreesoftware.com/wp-json/wp/v2/posts?slug='+slug;
var response = JSON.parse(UrlFetchApp.fetch(url).getContentText())
return response[0]['id'];
}
//funtion to get sluf from URL only
/*function getSlug(data) {