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
| import asyncio | |
| from gino import Gino | |
| from sqlalchemy import Column | |
| db = Gino() | |
| class Node(db.Model): | |
| __tablename__ = 'node' | |
| id = Column(db.Integer, primary_key=True) |
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
| tell application "Evernote" | |
| set foundNotes to find notes | |
| repeat with aNote in foundNotes | |
| set enTitle to (the title of aNote) | |
| set aHTML to HTML content of aNote | |
| if exists (source URL of aNote) then | |
| set aHTML to "<p>source url: " & source URL of aNote & "</p>" & aHTML | |
| end if | |
| set folderName to (name of notebook of aNote) |
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
| Nova.Cookie.set("googtrans_flag", 0) | |
| Nova.Cookie.set("googtrans", 0) |
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
| set docText to "<html><body>" | |
| tell application "Safari" | |
| --Variables | |
| set windowCount to number of windows | |
| --Repeat for Every Window | |
| repeat with x from 1 to windowCount - 1 | |
| set tabcount to number of tabs in window x |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/PuerkitoBio/goquery" | |
| ) | |
| func main() { |
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 | |
| adapter=$(echo "show Setup:/Network/Astrill" | scutil | sed -n '/Adapter/ s/^.*Adapter : \(.*\)/\1/ p') | |
| sudo scutil <<EOF | |
| open | |
| d.init | |
| d.add ServerAddresses * 127.0.0.1 | |
| set Setup:/Network/Service/$adapter/DNS | |
| EOF |