- Установи termux
- Зайди в termux и установи контейнер с убунтой
pkg update && pkg install resolv-conf proot proot-distro -y
proot-distro install ubuntu
proot-distro login ubuntu
Установка
#@title Canvas drawing library | |
import json | |
from typing import List | |
from IPython.display import HTML, Image | |
from google.colab.output import eval_js | |
canvas_html = """ | |
<div style="font: 11pt monospace; color:red; white-space:pre" id="error"></div> | |
<canvas width="{0}" height="{1}" style="height:{0}px;width:{1}px" id="canvas"></canvas> |
pkg update && pkg install resolv-conf proot proot-distro -y
proot-distro install ubuntu
proot-distro login ubuntu
Установка
Launch Terminal on Mac.
To enable aptX, type in the following command:
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
./Google\ Chrome --headless --disable-gpu --disable-logging --dump-dom http://google.com |
<?php | |
function grabPOST($url, $postDATA, $iOS = true) { | |
$ch = curl_init(); | |
$ua = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25'; | |
if ($iOS!==false) curl_setopt($ch, CURLOPT_USERAGENT, $ua); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_HEADER, FALSE); | |
curl_setopt($ch, CURLOPT_POST, TRUE); |
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/sysctl.h> | |
#include <string.h> | |
#define SC_OPT(KEY) { .id = KEY, .label = #KEY } | |
typedef struct sc_opt { | |
int id; | |
char* label; |
import AppKit | |
import PlaygroundSupport | |
import SwiftUI | |
@objc protocol _NSWindow { | |
var title: String? { get set } | |
var styleMask: UInt { get set } | |
func setFrame(_ frameRect: NSRect, display flag: Bool) | |
func center() | |
func makeKeyAndOrderFront(_ sender: Any?) |
[ | |
{ | |
"code": "100", | |
"phrase": "Continue", | |
"type": "Continue" | |
}, | |
{ | |
"code": "101", | |
"phrase": "Switching Protocols", | |
"type": "SwitchingProtocols" |
#!/usr/bin/env python3 | |
# brew install pygit2 | |
# pip3 install pygit2 | |
from pygit2 import Repository | |
import sys | |
import re | |
regex = r"^([a-z]{1,5})/([A-Z]{1,5}-[0-9]{1,4})" |
curl -i https://cloudflare.com/cdn-cgi/trace | grep ip | awk -F'=' '{print $2}' |