Discover gists
Inspired by:
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
@virgo:~ $ sudo tcpdump -vvvv -ttt -i eth1 icmp6 and 'ip6[40] = 134' | |
00:00:00.000000 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 200) fe80::b675:eff:fefa:1cb > ip6-allnodes: [icmp6 sum ok] ICMP6, router advertisement, length 200 | |
hop limit 0, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0s, retrans time 0s | |
source link-address option (1), length 8 (1): b4:75:0e:fa:01:cb | |
0x0000: b475 0efa 01cb | |
mtu option (5), length 8 (1): 1280 | |
0x0000: 0000 0000 0500 | |
prefix info option (3), length 32 (4): 2a01:ffff:43f::/64, Flags [onlink, auto], valid time 7200s, pref. time 1800s | |
0x0000: 40c0 0000 1c20 0000 0708 0000 0000 2a01 | |
0x0010: ffff 043f 0000 0000 0000 0000 0000 |
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
""" | |
Manipulate color schemes for mintty | |
For simplicity, support only "value = r, g, b" format with decimal values | |
Copyright 2017 Vitaly Potyarkin | |
Licensed under the Apache License, Version 2.0 | |
http://www.apache.org/licenses/LICENSE-2.0 |
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"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> | |
<xsl:key name="ISSUETYPES" match="/Report/Issues/Project/Issue" use="@TypeId"/> | |
<xsl:output method="html" indent="yes"/> | |
<xsl:template match="/" name="TopLevelReport"> | |
<html> | |
<head> | |
<title>Resharper InspectCode Report</title> | |
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 | |
# | |
# replace `GITHUBTOKEN` with custom token from https://github.com/settings/tokens, having `repo` admin access | |
# | |
for repo in $(curl -s -H "Authorization: token GITHUBTOKEN" 'https://api.github.com/orgs/TYPO3-CMS/repos?per_page=100' | jq -r '.[] | .url' | sort) | |
do | |
echo "Renaming ${repo}..." | |
response=$(curl -s -X POST \ |
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
from colorama import init,Fore,Style | |
class PCOLOR: | |
# init() = Required for Colorama on Windows for Termcolor | |
init() | |
def __init__(self): | |
# COLORS | |
self.green = Fore.GREEN | |
self.red = Fore.RED |
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
// hello |
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
{ | |
"categories": [ | |
{ | |
"name": [ | |
"Work" | |
], | |
"rule": { | |
"type": "regex", | |
"regex": "MathType|Excel|远程桌面连接|计算器|visio|WPS|vivado|siyuan|explorer.exe|IDM|vmware|Ditto|chrome|localsend_app|TencentDocs|word|SunloginClient|ppt|xilinx", | |
"ignore_case": true |
...$ tar -xOf 010a-e3614234-218f-4666-9609-22b1e5743db6-2022-07-03T10-00-00Z.tar.gz settings.management.cattle.io#v3/server-version.json | jq .value
"v2.6.6"
Fun walk down history lane. Prints the versions of rancher backups found in a dir, from settings stdout.
find restore/backups/ -name '*.tar.gz' -exec tar -xOf {} settings.management.cattle.io#v3/server-version.json \; | jq -r .value
NewerOlder