This process would likely apply to other Homebrew formula also.
First search for your desired package:
brew search go
You should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:
class TranslucentWin:NSWindow, NSApplicationDelegate, NSWindowDelegate{ | |
/** | |
* | |
*/ | |
override init(contentRect: NSRect, styleMask aStyle: Int, backing bufferingType: NSBackingStoreType, `defer` flag: Bool) { | |
super.init(contentRect: Win.sizeRect, styleMask: NSTitledWindowMask|NSResizableWindowMask|NSMiniaturizableWindowMask|NSClosableWindowMask|NSFullSizeContentViewWindowMask, backing: NSBackingStoreType.Buffered, `defer`: false) | |
self.contentView!.wantsLayer = true;/*this can and is set in the view*/ | |
self.backgroundColor = NSColor.greenColor().alpha(0.2) | |
self.opaque = false | |
self.makeKeyAndOrderFront(nil)//moves the window to the front |
#!/bin/bash | |
# copied from https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall | |
export WORK=$HOME/work | |
export CD=$HOME/cd | |
export FORMAT=squashfs | |
export FS_DIR=casper | |
sudo mkdir -p ${CD}/${FS_DIR} ${CD}/boot/grub ${WORK}/rootfs |
This process would likely apply to other Homebrew formula also.
First search for your desired package:
brew search go
You should get a list of results that include the below. Not "go" is very unspecific so you may get a lot of results:
# include <sys/types.h> | |
# include <sys/socket.h> | |
# include <ifaddrs.h> | |
# include <arpa/inet.h> | |
# include <netinet/in.h> | |
// Bad dirty quick functions written by hot fingers: | |
char* ipToStr(sockaddr* addr) { | |
static char ip[32]; |
// | |
// PacketTunnelProvider.swift | |
// Shadowsocks | |
// | |
// Created by Taher Ismail on 19/03/19. | |
// Copyright © 2019 Taher Ismail. All rights reserved. | |
// | |
import NetworkExtension | |
import NEKit |
Platform | CPU | GOOS | GARCH | GOARM | SDK | CGO_FLAGS | CARCH | |
---|---|---|---|---|---|---|---|---|
Windows | x86_64 | windows | amd64 | x86_64 | ||||
Windows | x86_32 | windows | 386 | x86_32 | ||||
MacOS | x86_64 | darwin | amd64 | macos | x86_64 | |||
MacOS | M1 | darwin | arm64 | macos | arm64 | |||
Linux | x86_64 | linux | amd64 | x86_64 | ||||
Linux | x86_32 | linux | 386 | x86_32 | ||||
Linux | arm64 | linux | arm64 | arm64 | ||||
iOS Simulator | x86_64 | darwin | amd64 | iphonesimulator | -fembed-bitcode | x86_64 | ||
iOS | arm | darwin | arm64 | iphoneos | -fembed-bitcode | arm64 |
import SwiftUI | |
import UIKit | |
import PhoneNumberKit | |
struct PhoneNumberTextFieldView: UIViewRepresentable { | |
@Binding var phoneNumber: String | |
private let textField = PhoneNumberTextField() | |
func makeUIView(context: Context) -> PhoneNumberTextField { | |
textField.withExamplePlaceholder = true |
# bind source_address to requests | |
import urllib3 | |
real_create_conn = urllib3.util.connection.create_connection | |
def set_src_addr(address, timeout, *args, **kw): | |
source_address = ('YOUR_BIND_IP', 0) | |
return real_create_conn(address, timeout=timeout, source_address=source_address) | |
urllib3.util.connection.create_connection = set_src_addr |
This script allows to use the free VPN service provided by VPNGate in an easy way. The user just needs to provide the desidered output country, and the script automatically chooses the best server.
After this step, OpenVPN is launched with the proper configuration. The VPN can be terminated by pressing Ctrl+C.
Run the script by providing the desired output country:
<?php | |
// add the below to your functions file | |
// then visit the page that you want to see | |
// the enqueued scripts and stylesheets for | |
function se_inspect_styles() { | |
global $wp_styles; | |
echo "<h2>Enqueued CSS Stylesheets</h2><ul>"; | |
foreach( $wp_styles->queue as $handle ) : | |
echo "<li>" . $handle . "</li>"; |