Skip to content

Instantly share code, notes, and snippets.

View Tcip's full-sized avatar

Mikael Elmblad Tcip

View GitHub Profile
@Tcip
Tcip / Inbox.ahk
Created November 23, 2015 13:36
AHKScript that will Click on friend req in your Inbox on Zynga
#Persistent
F1::
Gui +AlwaysOnTop
Gui, Add, Text,, Keyboard shortcuts for Farmville 2 on Zynga`n`nQ = Exit the program`nP = Pause the program`n`n1 = Start the clicks.`nPress the hotkey to click on all requests from your friends.
Gui Add, Button, Default, Close
Gui, Add, GroupBox, w240 h50, v2.0
Gui, Show, w290 h190, About
@Tcip
Tcip / Minecraft: Prefilled Chest With Fully Enchanted Netherite Armor
Last active July 30, 2020 17:57
Minecraft: Prefilled Chest With Fully Enchanted Netherite Armor
/give @p chest{display:{Name:'[{"text":"Chest","italic":false,"color":"aqua"}]',Lore:['[{"text":"FULLY ENCHANTED:","italic":false}]','[{"text":"","italic":false}]','[{"text":"- Netherite Armor","italic":false}]']},BlockEntityTag:{Items:[{Slot:0,id:netherite_helmet,Count:1,tag:{Enchantments:[{id:fire_protection,lvl:4},{id:respiration,lvl:3},{id:aqua_affinity,lvl:1},{id:thorns,lvl:3},{id:unbreaking,lvl:3},{id:mending,lvl:1}]}},{Slot:1,id:netherite_chestplate,Count:1,tag:{Enchantments:[{id:projectile_protection,lvl:4},{id:thorns,lvl:3},{id:unbreaking,lvl:3},{id:mending,lvl:1}]}},{Slot:2,id:netherite_leggings,Count:1,tag:{Enchantments:[{id:blast_protection,lvl:4},{id:thorns,lvl:3},{id:unbreaking,lvl:3},{id:mending,lvl:1}]}},{Slot:3,id:netherite_boots,Count:1,tag:{display:{Name:'[{"text":"Netherite Boots (Depth Strider)","italic":false,"color":"aqua"}]'},Enchantments:[{id:feather_falling,lvl:4},{id:projectile_protection,lvl:4},{id:depth_strider,lvl:3},{id:unbreaking,lvl:3},{id:mending,lvl:1},{id:soul_speed,lvl:3}]
@Tcip
Tcip / IMGappendChild.js
Created March 27, 2022 05:57
Print out all images on the page
var images=$$("img");for(each in images){var mdiv=document.createElement("P");document.body.appendChild(mdiv);mdiv.innerHTML=images[each].src};
@Tcip
Tcip / Create a InternetShortcut (Variable method).bat
Last active December 12, 2022 12:16
Create a InternetShortcut (.url) file. Variable method.
@echo off
REM Create a InternetShortcut (.url)
SET _name="Example.com"
SET _website="https://example.com"
echo [InternetShortcut] > "%_name%.url"
echo URL=%_website% >> "%_name%.url"
REM Example.com.url
@Tcip
Tcip / Create a InternetShortcut.bat
Created December 12, 2022 11:15
Create a InternetShortcut (.url) file.
@echo off
REM Create a InternetShortcut (.url)
echo [InternetShortcut] > "Example.com.url"
echo URL=https://example.com >> "Example.com.url"
REM Example.com.url
@Tcip
Tcip / Create a InternetShortcut (url with spaces).bat
Created December 12, 2022 11:27
Create a InternetShortcut (.url) file. URL with spaces.
@echo off
REM Create a InternetShortcut (.url)
echo [InternetShortcut] > "Example.com.url"
echo URL="https://example.com/hello world" >> "Example.com.url"
REM Example.com.url
@Tcip
Tcip / Create a InternetShortcut (Variable method + url with spaces).bat
Created December 12, 2022 11:32
Create a InternetShortcut (.url) file. Variable method. And URL with spaces.
@echo off
REM Create a InternetShortcut (.url)
SET _name="Example.com"
SET "_website=https://example.com/hello world"
echo [InternetShortcut] > "%_name%.url"
echo URL=%_website% >> "%_name%.url"
REM Example.com.url
@Tcip
Tcip / Show the time with variable.bat
Created March 8, 2023 18:10
Show the time with variable. Hours, minutes, seconds
@echo off
REM Show the time (hours, minutes, seconds) with variable
REM https://groups.google.com/g/microsoft.public.win2000.cmdprompt.admin/c/CHS0gwjZQDA/m/L85IIcFcLgkJ
REM <nul (set/p z=sec min hours: %time:~6,2% %time:~3,2% %time:~0,2%)
title %~nx0
cls
cd %~dp0
echo.
echo Show the time with variable
echo.
@Tcip
Tcip / extension[dismissable].js
Created September 8, 2023 23:02
dismissable notification for Visual Studio Code extension
/*
vbscript-format by vsmalone -- Visual Studio Code Extension
https://marketplace.visualstudio.com/items?itemName=vsmalone.vbscript-format
%USERPROFILE%\.vscode\extensions\vsmalone.vbscript-format-0.0.2\extension.js
Line 13
*/
// vscode.window.showInformationMessage('完成');
vscode.window.showInformationMessage('Finish'),
@Tcip
Tcip / echo Windows Edition.bat
Created March 27, 2024 20:31
echo Windows Edition using the PowerShell environment variable POWERSHELL_DISTRIBUTION_CHANNEL
@echo off
SET _we="%POWERSHELL_DISTRIBUTION_CHANNEL%"
FOR /F "tokens=* delims=MSI:" %%G IN (%_we%) DO echo %%G
pause