Skip to content

Instantly share code, notes, and snippets.

@oflow
oflow / np-01.ahk
Last active July 21, 2022 13:15
XButton2 + Click assigned to {Left},{Right} Keys
XBShift := 0
^F13::
Suspend On
Pause On
return
^+F13::
Suspend Off
Pause Off
@oflow
oflow / twitter-new-sushi.css
Created June 16, 2017 04:21
新しい🍣 それはエモーショナルに回転する
/* 回転🍣
*
* https://twitter.com/oflow/status/875568672021987329
*
*/
.HeartAnimation:before {
content: '🍣' !important;
display: inline-block !important;
}
.favorited .HeartAnimation:before {
@oflow
oflow / fuck_u_disable_paste_and_contextmenu.user.js
Last active November 20, 2018 02:59
貼り付けと選択と右クリック禁止すんな殺すぞ!
// ==UserScript==
// @name Disable "disable Paste, Contextmenu, Select"
// @description 貼り付けと選択と右クリック禁止すんな殺すぞ!
// @namespace https://oflow.me
// @include https://*
// @include http://*
// @version 1.0.2
// @grant none
// ==/UserScript==
@oflow
oflow / _systemctl.zsh
Last active August 30, 2018 07:17
雑なsystemctl補完
compdef _systemctl systemctl
function _systemctl() {
_arguments -C \
'1: :(--help --version
enable disable start stop restart reload \
cat status show kill \
list-units list-timers list-unit-files list-sockets \
daemon-reload \
cancel list-jobs list-machines \
@oflow
oflow / Enable SMB1.bat
Last active July 16, 2018 14:11
Windows 10でNASが繋がらないときにSMB1.0とサービスを有効にするやつ
@echo off
openfiles > NUL 2>&1
if %ERRORLEVEL% equ 0 (
@echo on
rem Enable Function Discovery Provider Host
sc config fdPHost start=auto
sc start fdPHost
rem Enable Function Discovery Resource Publication
sc config FDResPub start=auto
// ==UserScript==
// @name Fuck you <INPUT onpaste="return false">
// @description 貼り付け禁止すんな殺すぞ!
// @include https://*
// ==/UserScript==
/* https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation */
document.addEventListener('paste', event => event.stopImmediatePropagation(), true);
@oflow
oflow / disable_fast_startup.reg
Created May 30, 2018 08:39
高速スタートアップ無効化
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"HiberbootEnabled"=dword:00000000
@oflow
oflow / window_update_toggle.vbs
Created May 9, 2017 14:09
俺のタイミングで更新させろ!それ以外は何もするな!何もするな!!
Option Explicit
Dim wsh, svList, svInfo
Dim scPath, query, scMode
scPath = "%WINDIR%\System32\sc.exe"
query = "SELECT * FROM Win32_Service WHERE Name='wuauserv'"
Set svList = GetObject("winmgmts:").ExecQuery(query)
For Each svInfo In svList
scMode = svInfo.StartMode
@oflow
oflow / README.MD
Last active March 8, 2018 03:27
エクスプローラーのナビゲーションツリーからDropboxを非表示にするやつ

dword:00000000 に設定しただけだとDropboxが値を dword:00000001 に戻していつの間にかナビゲーションツリーに復活する。 {E31EA727-12ED-4702-820C-4B6445F28E1A} の右クリックメニュー「アクセス許可」で全部拒否にしとけば良さそう。

@oflow
oflow / rolling_sushi.html
Last active December 26, 2017 04:05
寿司、回る。
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Rolling SUSHI</title>
<style type="text/css">
html,body { padding: 0; margin: 0; }
#sushi {
text-align: center;
position: absolute;