Let's say you want to host domains first.com and second.com.
Create folders for their files:
| // ==UserScript== | |
| // @name ASTx2 Emulator | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author @BawAppie | |
| // @match https://*/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=ahnlab.com | |
| // @grant none | |
| // ==/UserScript== |
| Add-Type 'public class SFW { [System.Runtime.InteropServices.DllImport("user32.dll")][return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)] public static extern System.Boolean SetForegroundWindow(System.IntPtr hWnd); }' | |
| $handle = [activator]::CreateInstance([type]::GetTypeFromCLSID("0002DF01-0000-0000-C000-000000000046")) | |
| $handle.Visible = $true | |
| $handle.Navigate('http://www.example.com/') | |
| [SFW]::SetForegroundWindow($handle.HWND) |
| a=0 | |
| b=0 | |
| c=0 | |
| d=0 | |
| e=0 | |
| f=0 | |
| t=0 |
| let fm = FileManager.iCloud() | |
| let dir = fm.documentsDirectory() | |
| const baseDirs = [`${dir}/modules`, `${dir}/modules/moduler`] | |
| baseDirs.forEach(dir => { | |
| if (!fm.isDirectory(dir)) { | |
| fm.createDirectory(dir) | |
| } | |
| }) |
| import sys | |
| import windows | |
| import windows.winproxy | |
| import windows.generated_def as gdef | |
| # List distro: wslconfig /l | |
| class WSLAPIProxy(windows.winproxy.ApiProxy): | |
| APIDLL = "wslapi" | |
| default_error_check = staticmethod(windows.winproxy.no_error_check) |
| #!/usr/bin/env bash | |
| PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH" | |
| export PATH=:$PATH | |
| export GEM_HOME=$(ruby -e 'print Gem.user_dir') | |
| bundler exec jekyll s |
| - (void)observeJSContext | |
| { | |
| CFRunLoopRef runLoop = CFRunLoopGetCurrent(); | |
| // This is a idle mode of RunLoop, when UIScrollView scrolls, it jumps into "UITrackingRunLoopMode" | |
| // and won't perform any cache task to keep a smooth scroll. | |
| CFStringRef runLoopMode = kCFRunLoopDefaultMode; | |
| CFRunLoopObserverRef observer = CFRunLoopObserverCreateWithHandler | |
| (kCFAllocatorDefault, kCFRunLoopBeforeWaiting, true, 0, ^(CFRunLoopObserverRef observer, CFRunLoopActivity _) { |
| set fish_git_dirty_color red | |
| set fish_git_not_dirty_color green | |
| function parse_git_branch | |
| set -l branch (git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/') | |
| set -l git_status (git status -s) | |
| if test -n "$git_status" | |
| echo (set_color $fish_git_dirty_color)$branch(set_color normal) | |
| else |
by xero updated 10.29.24