start new:
tmux
start new with session name:
tmux new -s myname
| -- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
| -- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password | |
| -- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
| -- 4. Enable Applescript Editor and System UI Server | |
| -- 5. Trigger script from the menu | |
| -- 6. Enjoy being connected | |
| tell application "Cisco AnyConnect Secure Mobility Client" | |
| activate | |
| end tell |
| -- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
| -- (Or export to .app to run from spotlight.) | |
| -- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password | |
| -- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
| -- 4. Enable Applescript Editor and System UI Server (or for this .app if so exported) | |
| -- 5. Trigger script from the menu (or run from spotlight) | |
| -- 6. Enjoy being connected | |
| -- 7. Run script again to close connection | |
To remove a submodule you need to:
| #pragma once | |
| #include <string> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| class csvfile; | |
| inline static csvfile& endrow(csvfile& file); | |
| inline static csvfile& flush(csvfile& file); |
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'| import { AfterViewInit, Directive, ElementRef, EventEmitter, forwardRef, Inject, Injectable, InjectionToken, Injector, Input, NgZone, OnInit, Output } from '@angular/core'; | |
| import { AbstractControl, ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR, NgControl, Validators } from '@angular/forms'; | |
| import { Http } from '@angular/http'; | |
| declare const grecaptcha : any; | |
| declare global { | |
| interface Window { | |
| grecaptcha : any; | |
| reCaptchaLoad : () => void |
| from __future__ import print_function | |
| import numpy as np | |
| def asciihist(it, bins=10, minmax=None, str_tag='', | |
| scale_output=30, generate_only=False, print_function=print): | |
| """Create an ASCII histogram from an interable of numbers. | |
| Author: Boris Gorelik [email protected]. based on http://econpy.googlecode.com/svn/trunk/pytrix/pytrix.py | |
| License: MIT | |
| """ | |
| ret = [] |
Steps to change the URL of Rancher installation and switch from a self-signed certificate to a certificate signed by recognized CA.
server-url setting to the new URL:
https://<old_rancher_hostname>/g/settings/advancedserver-url to https://<new_rancher_hostname>https://<old_rancher_hostname>/g/settings/advancedcacerts click context menu -> View in APIvalue field