π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Create HTML | |
| Code: Ilias Ismanalijev | |
| Arlo Rose | |
| */ | |
| var isCS2 = (app.version.split(".")[0] > 8) ? true : false; | |
| var nonNormalAlert = false; | |
| function makeDialog(htmlInfo) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name wikiHow Plus | |
| // @namespace http://www.wikihow.com | |
| // @description Does nifty stuff on wikiHow, like autowelcome. | |
| // @include http://*wikihow.com/* | |
| // @version 0.2 | |
| // ==/UserScript== | |
| // Options: | |
| // - Plus - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (typeof XMLHttpRequest == "undefined") | |
| XMLHttpRequest = function () { | |
| try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } | |
| catch (e) {} | |
| try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } | |
| catch (e) {} | |
| try { return new ActiveXObject("Msxml2.XMLHTTP"); } | |
| catch (e) {} | |
| //Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant | |
| throw new Error("This browser does not support XMLHttpRequest."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bStrm = new ActiveXObject("Adodb.Stream"); | |
| var wShell = new ActiveXObject("Wscript.Shell"); | |
| var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
| var ForReading = 1, ForWriting = 2, ForAppending = 8; | |
| var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0; | |
| var debug = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Removes all missing images in the active document. | |
| // Keeps the frames. | |
| if (app.documents.length == 0) alert("No documents are open. Please open a document and try again."); | |
| var doc = app.activeDocument; | |
| var links = doc.links; | |
| for (var i = 0; i<links.length; i++) { | |
| if (links[i].status == LinkStatus.LINK_MISSING) { | |
| links[i].parent.remove(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo ) | |
| cores=$( awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo ) | |
| freq=$( awk -F: ' /cpu MHz/ {freq=$2} END {print freq}' /proc/cpuinfo ) | |
| tram=$( free -m | awk 'NR==2 {print $2}' ) | |
| swap=$( free -m | awk 'NR==4 {print $2}' ) | |
| up=$(uptime|awk '{ $1=$2=$(NF-6)=$(NF-5)=$(NF-4)=$(NF-3)=$(NF-2)=$(NF-1)=$NF=""; print }') | |
| echo "CPU model : $cname" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Ctrl+Alt+T - Run Command Line | |
| ^!t:: | |
| SetWorkingDir, C:\Tools\cmder | |
| Run Cmder.bat | |
| Return | |
| ; Win+Z - Run Sublime Text | |
| #z:: | |
| Run "C:\Program Files\Sublime Text 3\sublime_text.exe" | |
| Return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ | |
| βββββββββββββββββββββββββββββββββββββ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| https://twitter.com/illyism/status/1689679677563006976 | |
| Shared for gradient.page: https://eu.posthog.com/shared/xTSSqCWgGVUnhselqI_YOoxGVPtlWQ | |
| Modify it by settings your domain below | |
| */ | |
| SELECT | |
| avg(time_on_page) AS avg_time_on_page, | |
| count(time_on_page) AS counts, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // grab all the files in src/ | |
| import { glob } from 'glob' | |
| import { basename, extname } from 'node:path' | |
| function getName(a: string) { | |
| return basename(a, extname(a)) | |
| } | |
| function isSameFileName(fpA, fpB) { |
OlderNewer