Skip to content

Instantly share code, notes, and snippets.

View siketyan's full-sized avatar
🍖
Hungry

Naoki Ikeguchi siketyan

🍖
Hungry
View GitHub Profile
@miio
miio / FixDS-Lite.bash
Last active June 26, 2024 08:11
UDM Pro で固定IPv4を使いたい場合やDS-Liteが挙動おかしいときに作ったスクリプト
# DS-Lite修正
# 参考
# https://techlog.iij.ad.jp/contents/dslite-raspi
REMOTE=''
# SLAAC シングルの人は多分これでいける
# LOCAL=`ip addr show br0 | grep 'mngtmpaddr' | awk '{print $2}' | awk -F/ '{print $1}'`
# DHCP-PDv6の人はこっち
LOCAL=`ip addr show br0 | grep 'inet6' | grep 'dynamic' | awk '{print $2}' | awk -F/ '{print $1}'`
// ==UserScript==
// @name Remove Twitter Deck Card
// @namespace https://twitter.com/takemioIO
// @version 0.0.1
// @description Remove the twitter views link from people's tweets
// @author takemioIO
// @match https://tweetdeck.twitter.com/*
// @icon https://static.thenounproject.com/png/1159224-200.png
// @license MIT
// ==/UserScript==
diff --git a/src/iperf_api.c b/src/iperf_api.c
index 09ab6af..a54be44 100644
--- a/src/iperf_api.c
+++ b/src/iperf_api.c
@@ -4520,11 +4520,26 @@ diskfile_recv(struct iperf_stream *sp)
{
int r;
+#if 1
+ static int pipefds[2] = {-1, -1};
@DQNEO
DQNEO / dict.py
Last active January 27, 2023 02:54
Python script to lookup word definitions from MacOS's builtin dictionary app
#!/usr/bin/env python3
#
# LICSENCE: BSD
#
# Thanks to: https://www.lifewithpython.com/2016/07/python-use-mac-dictionary-app.html
#
import sys
from DictionaryServices import DCSGetTermRangeInString, DCSCopyTextDefinition
def lookup(word):
@zunda
zunda / shc-payload.rb
Last active December 14, 2022 07:07
Read the payload from a SMART Health Card
#!/usr/bin/ruby
#
# usage: echo shc:/0123..(decoded from a QR code) | ruby shc-payload.rb | jq
# Prints the payload from SMART Health Card on QR code
# https://spec.smarthealth.cards/
#
# Copyright 2021 by zunda <zundan at gmail.com>
#
# Permission is granted for use, copying, modification, distribution,
# and distribution of modified versions of this work as long as the
@alces
alces / ansible_local_playbooks.md
Last active July 6, 2024 09:49
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@gaogao-9
gaogao-9 / mpyw.md
Last active June 1, 2023 03:59
mpyw語録
@mayuki
mayuki / CredentialUI.cs
Created March 22, 2010 10:22
Windows Common Credential UI Helper for .NET Framework
/*
* CredentialUI.cs - Windows Credential UI Helper
*
* License: Public Domain
*
*/
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Security;