$ brew install ffmpeg
This file contains 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
// https://www.microsoft.com/zh-tw/software-download/windows10ISO | |
document.getElementById("product-edition").innerHTML = ` | |
<option value='' selected='selected'>選取版本</option> | |
<option value='2'>Windows 7 Home Basic SP1 </option> | |
<option value='4'>Windows 7 Professional SP1 </option> | |
<option value='6'>Windows 7 Home Premium SP1 </option> | |
<option value='8'>Windows 7 Ultimate SP1 </option> | |
<option value='10'>Windows 7 Home Premium N SP1 </option> | |
<option value='12'>Windows 7 Professional N SP1 </option> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<colorTheme id="11666" name="XCode - Dusk - Actual" modified="2012-10-31 16:08:07" author="mechatronic"> | |
<searchResultIndication color="#616161" /> | |
<filteredSearchResultIndication color="#616161" /> | |
<occurrenceIndication color="#616161" /> | |
<writeOccurrenceIndication color="#616161" /> | |
<findScope color="#E0E2E4" /> | |
<deletionIndication color="#E0E2E4" italic="true" /> | |
<sourceHoverBackground color="#000000" /> | |
<singleLineComment color="#41B644" /> |
This file contains 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
#!/usr/bin/env node | |
const { Alchemy, Network } = require('alchemy-sdk'); | |
const ethers = require('ethers'); | |
const EthDater = require('ethereum-block-by-date'); | |
const config = { | |
apiKey: '3zNbANvcjr5yUHtnGKxXGdnX3dUYxL2X', | |
network: Network.ETH_MAINNET, | |
}; |
This file contains 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 | |
# create alfred-backup folder | |
mkdir -p alfred-backup/preferences/features/websearch | |
# prefs.plist | |
cp ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/features/websearch/prefs.plist \ | |
alfred-backup/preferences/features/websearch | |
# resources (images) |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Gist HTML Preview</title> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> | |
<meta http-equiv='Content-Type' content='text/html; charset=utf8'/> | |
<meta name='apple-mobile-web-app-capable' content='yes'/> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'/> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<style type="text/css"> |
This file contains 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
# https://gist.github.com/spicycode/1229612 | |
# https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html | |
# 0 is too far from ` | |
set -g base-index 1 | |
# detach | |
bind -n C-e detach-client | |
# create new tab |
This file contains 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
:: https://serverfault.com/a/351154 | |
cmd /c "start rundll32 sysdm.cpl,EditEnvironmentVariables" |
This file contains 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
# get env var | |
function get_env() { | |
VAR=$(grep ${1} .env) | |
echo ${VAR#*=} | |
} |
This file contains 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
InvoiceLineId | InvoiceId | TrackId | UnitPrice | Quantity | |
---|---|---|---|---|---|
1 | 1 | 2 | 0.99 | 1 | |
2 | 1 | 4 | 0.99 | 1 | |
3 | 2 | 6 | 0.99 | 1 | |
4 | 2 | 8 | 0.99 | 1 | |
5 | 2 | 10 | 0.99 | 1 | |
6 | 2 | 12 | 0.99 | 1 | |
7 | 3 | 16 | 0.99 | 1 | |
8 | 3 | 20 | 0.99 | 1 | |
9 | 3 | 24 | 0.99 | 1 |
NewerOlder