As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Diagnostics.Contracts; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml.Serialization; |
It is possible to compile Go programs for a different OS, even though go build
says otherwise.
You'll need:
golang-crosscompile
helper script https://github.com/davecheney/golang-crosscompile# Other hosts (ISE, ConEmu) don't always work as well with PSReadLine. | |
# Also, if PS is run with -Command, PSRL loading is suppressed. | |
$psrlMod = Get-Module PSReadLine | |
if (($null -eq $psrlMod) -or ($host.Name -eq 'Windows PowerShell ISE Host')) { | |
return | |
} | |
elseif ($psrlMod.Version.Major -lt 2) { | |
throw "PSReadLine 1.x installed or not imported, import PSRL or ugprade to at least 2.x." | |
} |
<# | |
.SYNOPSIS | |
Downloads a file | |
.DESCRIPTION | |
Downloads a file | |
.PARAMETER Url | |
URL to file/resource to download | |
.PARAMETER Filename | |
file to save it as locally | |
.EXAMPLE |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
import urllib2 | |
import os | |
import argparse | |
import sys | |
import json | |
# adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search |
#! /usr/bin/python3 | |
import discord | |
import asyncio | |
import redis | |
from time import gmtime, strftime | |
# Discord.py's discord client object | |
client = discord.Client() |