Skip to content

Instantly share code, notes, and snippets.

View gcsecsey's full-sized avatar
:shipit:
On a shipping spree

Gergely Csécsey gcsecsey

:shipit:
On a shipping spree
View GitHub Profile
@gcsecsey
gcsecsey / copy_rendered_link_userscript.js
Created April 25, 2024 07:55
Userscript for copying current page title and URL as a link
@gcsecsey
gcsecsey / jetpack.json
Last active December 5, 2023 10:52
WP projects workbench colors
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#057e06",
"titleBar.inactiveBackground": "#045e05",
"titleBar.activeForeground": "#ffffff",
"titleBar.inactiveForeground": "#cccccc"
}
}
@gcsecsey
gcsecsey / choc.ps1
Last active October 11, 2023 13:11
choco
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
cinst -y --ignore-checksums`
7zip `
anaconda3 `
androidstudio `
bitwarden `
edgedeflector `
Firefox `
git `
@gcsecsey
gcsecsey / README.md
Last active September 2, 2023 13:04
WooCommerce quick edit schedule product

WooCommerce quick edit schedule product

This small script updates the product date and unsets the private checkbox, scheduling the product for a specific date in the future. I made this because I couldn't find a quicker way to bulk schedule products (none of the WooCommerce bulk product editor plugins support this), but I need to do this for a lot of products at a time as we rotate seasonal products in the shop.

How to use

  • Add snippet.js as a snippet in Chrome dev tools, update the date and time

  • Go to the products list and click on the Quick Edit option

    CleanShot 2023-09-02 at 13 59 42@2x
  • Run the snippet from devtools, it will update these fields and save the product

@gcsecsey
gcsecsey / karabiner.json
Last active August 6, 2022 18:19
Karabiner-Elements Magic Keyboard mappings
{
"rules": [
{
"description": "Eject to Screenshot",
"manipulators": [
{
"from": {
"consumer_key_code": "eject"
},
"to": [
@gcsecsey
gcsecsey / wporgPlugin.js'
Created December 14, 2021 12:21
wporg plugin
‎‎​
@gcsecsey
gcsecsey / Untitled.png
Last active June 9, 2021 12:32
Cura settings
Untitled.png
@gcsecsey
gcsecsey / GSTATION local
Last active December 3, 2020 09:42
Razer Blade chocolatey install script
7zip 19.0
7zip.install 19.0
adb 30.0.4
authy-desktop 1.8.3
autodesk-fusion360 2.0.9313
autohotkey 1.1.33.02
autohotkey.install 1.1.33.02
autohotkey.portable 1.1.33.02
battle.net 0.3
bitwarden 1.23.0
@gcsecsey
gcsecsey / wsl.conf
Created September 23, 2020 18:12
wsl.conf
# sudo nano /etc/wsl.conf
# Enable extra metadata options by default
[automount]
enabled = true
root = /
options = "metadata,umask=22,fmask=11"
mountFsTab = false