wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P . www.foo.com- -m (Mirror) Turns on mirror-friendly settings like infinite recursion depth, timestamps, etc.
| #!/usr/bin/env python3 | |
| import argparse | |
| import emoji | |
| import urllib.request | |
| import json | |
| import sys | |
| parser = argparse.ArgumentParser(description="Convert maunium stickerpicker to MSC2545 sticker packs") | |
| parser.add_argument("--baseurl", help="Maunium sticker picker URL") |
| # Check these threads before proceeding: | |
| # https://github.com/microsoft/WSL/discussions/5857 | |
| # https://github.com/microsoft/WSL/issues/5821 | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| $CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
| Exit | |
| } | |
| # Restart the Host Network Service | |
| Restart-Service -Force -Name hns |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <schema version="1.0" xmlns="http://www.apple.com/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.apple.com/metadata file:///System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Resources/MetadataSchema.xsd"> | |
| <!-- | |
| Compiled from /Applications/Microsoft\ Outlook.app/Contents/Library/Spotlight/Microsoft\ Outlook\ Spotlight\ Importer.mdimporter/Contents/Resources/schema.xml | |
| with info from http://xensoft.com/search-mac-outlook-2011-mail-with-raw-queries/ | |
| --> | |
| <types> | |
| <type name="com.microsoft.outlook15.contact"> | |
| <allattrs> | |
| kMDItemTitle |
| package com.company.project.components; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.MessageSource; | |
| import org.springframework.context.support.MessageSourceAccessor; | |
| import org.springframework.stereotype.Component; | |
| import javax.annotation.PostConstruct; | |
| import java.util.Locale; |
| import com.intellij.openapi.actionSystem.AnActionEvent | |
| import com.intellij.openapi.editor.Document | |
| import com.intellij.testFramework.MapDataContext | |
| import static liveplugin.PluginUtil.* | |
| registerAction("MungeText", "ctrl alt shift M") { AnActionEvent event -> | |
| def project = event.project | |
| showPopupMenu([ | |
| "Group by": { |
| import com.intellij.openapi.module.Module | |
| import com.intellij.openapi.module.ModuleManager | |
| import com.intellij.openapi.roots.CompilerModuleExtension | |
| import com.intellij.openapi.roots.LibraryOrderEntry | |
| import com.intellij.openapi.roots.ModifiableRootModel | |
| import com.intellij.openapi.roots.ModuleRootManager | |
| import com.intellij.openapi.roots.OrderRootType | |
| import com.intellij.openapi.roots.libraries.Library | |
| import com.intellij.openapi.roots.libraries.LibraryTable | |
| import liveplugin.PluginUtil |
Java uses static, declared typing:
String hello = "Hello, World!";
List<String> phrases = new ArrayList<String>;
phrases.add(hello);
phrases.add(null);
phrases.add(123); // Compile error! Not a string.| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!--Created by Ukelele version 2.2.4 on 2013-10-11 at 12:40 (JST)--> | |
| <!--Last edited by Ukelele version 2.2.4 on 2013-10-11 at 12:57 (JST)--> | |
| <keyboard group="0" id="12456" name="U.S. option-specific-special-char-blank" maxout="1"> | |
| <layouts> | |
| <layout first="0" last="17" modifiers="f4" mapSet="16c"/> | |
| <layout first="18" last="18" modifiers="f4" mapSet="984"/> | |
| <layout first="21" last="23" modifiers="f4" mapSet="984"/> | |
| <layout first="30" last="30" modifiers="f4" mapSet="984"/> |