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
| Copyright (c) 2015, PyroPeter <$nickname@$nickname.eu> | |
| Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
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
| <# | |
| PowerShell Image module(http://archive.msdn.microsoft.com/PSImage/)のget-exif.ps1を改変して下記のプロパティを追加します。 | |
| - Latitude (緯度。度表記) | |
| - Longitude (経度。度表記) | |
| - Name (ファイル名) | |
| 使用例 | |
| dir "*.jpg" | get-exif | select name, latitude, longitude | export-csv out.csv | |
| ライセンス |
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 sys | |
| import subprocess | |
| import csv | |
| def describe_ucrt_lib(platform): | |
| lib_path = "windows-10-sdk/Lib/10.0.10240.0/ucrt/{}/ucrt.lib".format(platform) | |
| output = subprocess.check_output(["nm", lib_path]) | |
| output = output.decode("utf-8") | |
| # Output (x86 32-bit) looks like: |
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
| #define __STDC_CONSTANT_MACROS | |
| #include <stdint.h> | |
| #include <inttypes.h> | |
| #include <windows.h> | |
| #include <stdio.h> | |
| extern "C" | |
| { | |
| #include <libavfilter/avfilter.h> |
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 | |
| for d in /sys/kernel/iommu_groups/*/devices/*; do | |
| n=${d#*/iommu_groups/*}; n=${n%%/*} | |
| printf 'IOMMU Group %s ' "$n" | |
| lspci -nns "${d##*/}" | |
| done |
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
| # Usage: findelevate.py C:\Windows\System32\ | |
| # Needs sigcheck.exe in path [https://technet.microsoft.com/en-us/sysinternals/bb897441.aspx] | |
| import sys | |
| import os | |
| import glob | |
| import subprocess | |
| if len(sys.argv) < 2: | |
| print "Usage: findelevate.py <PATH>" |
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/sh | |
| WHICH=/bin/which | |
| REALPATH=$($WHICH realpath) | |
| SED=$($WHICH sed) | |
| GPG=$($WHICH gpg) | |
| MV=$($WHICH mv) | |
| LN=$($WHICH ln) | |
| LOSETUP=$($WHICH losetup) | |
| SUDO=$($WHICH sudo) | |
| MOUNT=$($WHICH mount) |
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
| # source:http://geocities.com/SiliconValley/heights/7052/opcode.txt | |
| From: [email protected] (Mark Hopkins) | |
| Newsgroups: alt.lang.asm | |
| Subject: A Summary of the 80486 Opcodes and Instructions | |
| (1) The 80x86 is an Octal Machine | |
| This is a follow-up and revision of an article posted in alt.lang.asm on | |
| 7-5-92 concerning the 80x86 instruction encoding. | |
| The only proper way to understand 80x86 coding is to realize that ALL 80x86 |
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
| #!/usr/bin/env bash | |
| # Runs a command wrapped in ZFS pre-post snapshots. The whole data pool is recursively snapshotted. | |
| # Analogous to my snp script for BTRFS: https://gist.github.com/erikw/5229436 | |
| # Usage: $ znp <commands> | |
| # e.g.: $ znp pgk upgrade | |
| # e.g.: $ znp portmaster -aG | |
| # e.g.: $ znp freebsd-upgrade install | |
| zfs_pool=zroot |
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
| #!/usr/bin/env bash | |
| set -o errexit -o pipefail | |
| if [ "$#" -eq 0 ] | |
| then | |
| echo "usage: rs PATTERN REPLACEMENT [PATH...]" > /dev/stderr | |
| exit 1 | |
| fi |
OlderNewer