start new:
tmux
start new with session name:
tmux new -s myname
property storedURL : "" | |
tell application "Safari" | |
set storedURL to URL of current tab of front window | |
end tell | |
tell application "Google Chrome" | |
try | |
set URL of active tab of front window to storedURL | |
on error | |
make new window | |
set URL of active tab of front window to storedURL |
tell application "Safari" to set currentURL to URL of current tab of window 1 | |
tell application "Google Chrome" | |
activate | |
if (exists window 1) and (URL of active tab of window 1 is "chrome://newtab/") then | |
tell window 1 to set URL of active tab to currentURL | |
else | |
open location currentURL | |
end if | |
end tell |
; global registers: | |
; r0 - no man's land | |
; r1 - return address | |
; X (r26,r27) - frame pointer | |
;function frame: | |
;--------------------------- | |
; return address | |
; arg0 | |
; ... |
#!/usr/bin/env python3 | |
""" | |
Tests http mirrors of cygwin | |
""" | |
import random | |
import time | |
from urllib.request import urlopen | |
import sys | |
__author__ = 'Dmitry Sidorenko' |
#define SIO_C 2 | |
#define SIO_D 4 | |
#define SIO_CLOCK_DELAY 100 | |
void setup() | |
{ | |
pinMode(8,OUTPUT); | |
// while(1) | |
// { |
-- | |
-- open currently open URL in Safari in Chrome | |
-- forked from https://gist.github.com/3151932 | |
-- | |
property theURL : "" | |
tell application "Safari" | |
set theURL to URL of current tab of window 1 | |
end tell | |
if appIsRunning("Google Chrome") then |
Table of Contents
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: