Skip to content

Instantly share code, notes, and snippets.

@pastudan
pastudan / gist:db586a316c8f7af5cde517ec4edd4003
Last active November 13, 2023 11:57
Default Fixes (Windows, Vim, etc)

Windows

Shift + F10, then OOBE\BYPASSNRO

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v BingSearchEnabled /t REG_DWORD /d 0
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v CortanaConsent /t REG_DWORD /d 0
tskill searchui

Vim Default, Common Utils, and Node

// @flow
const { createLogger, format, transports } = require('winston')
const { combine, timestamp, printf, label } = format
const serializeError = require('serialize-error')
const { getRelease } = require('./node')
const { LOG_FILE, LOG_LEVEL, LOGGING_LABEL, APP_ENV } = require('./config')
const release = getRelease().substr(0, 7)
@pastudan
pastudan / freeleech-finder
Created October 26, 2013 17:20
PTP Freeleech Finder
jQuery("tr.group_torrent").each(function(){
$this = jQuery(this);
var seed = $this.find("td:nth-child(5)").text();
var leech = $this.find("td:nth-child(6)").text();
var groupid = $this.attr('class').split(' ')[1].split('_')[1]
if (!(seed > 2 && leech > seed)){
$this.hide();
$poster = jQuery('#large_groupid_'+groupid);
var rowspan = $poster.attr('rowspan', -1);
$poster.attr('rowspan', rowspan-1);