Skip to content

Instantly share code, notes, and snippets.

View johnsusek's full-sized avatar

John Susek johnsusek

View GitHub Profile
# Cyberpunk2077 launch script to skip final intro movie
# Usage: powershell -ExecutionPolicy Bypass -File "Cyberpunk 2077 - Spacebar Pusher.ps1"
# After launch this script will tap spacebar once every second
# until $stopAfter many seconds have elapsed
# Tweak this number to match your system
# If this number is too low the intro won't be skipped
# In this number is too high spacebar will keep being tapped in the main menu
$stopAfter = 25
@johnsusek
johnsusek / gist:b1a5e80522bbaf13ec5dd852bc8dded2
Last active December 14, 2022 17:37
Bloomberg Paywall Bypass
document.body.innerHTML = JSON.parse(document.querySelector('[data-component-props="OverlayAd"]').textContent).story.body + '<style>p { margin: 1em; line-height: 1.2; }</style>'
/** @module action/Zone */
// Auto-generated, edits will be overwritten
import * as Zone from '../Zone'
export default {
async search_zone({ commit }, { options }) {
const response = await Zone.search_zone(options);
if (response.error) {
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
classpath group: 'net.md-5', name: 'SpecialSource', version: '1.8.6', changing: true
}
func createNewWindow() -> NSWindowController? {
let storyboard = NSStoryboard(name: "Main", bundle: nil)
guard let mainViewController = storyboard.instantiateController(withIdentifier: "OutlineViewController") as? RecallOutlineViewController else { return nil }
let newWindow = NSWindow(contentViewController: mainViewController)
newWindow.title = "Recall"
newWindow.toolbar = NSToolbar(identifier: "MainToolbar")
newWindow.makeKeyAndOrderFront(self)
import Cocoa
import Foundation
class RecallOutlineView: NSOutlineView {
required init?(coder: NSCoder) {
super.init(coder: coder)
}
var isReceivingDrag = false {
didSet {
func outlineViewItemWillExpand(_ notification: Notification) {
if let entity = notification.userInfo?["NSObject"] as? DesktopFolderEntity {
guard let sortDescriptor = self.outlineView.sortDescriptors.first else { return }
entity.isExpanding = true
let childrenFetch = BlockOperation {
entity.buildChildren()
entity.sortChildren(sortDescriptor: sortDescriptor)
let cpSpawn = require('child_process').spawn;
async function spawn(cmd, args, opts, handleStdout, handleStderr) {
return new Promise((resolve, reject) => {
let handle = cpSpawn(cmd, args, opts);
handle.stdout.setEncoding('utf8');
handle.stdout.on('data', d => handleStdout(d.toString()));
handle.stderr.setEncoding('utf8');
# /etc/haproxy/haproxy.cfg, version 1.4
global
maxconn 4096
user haproxy
group haproxy
daemon
defaults
log global
/* THIS FILE IS AUTO-GENERATED, EDITS WILL BE OVERWRITTEN */
import Vue from 'vue'
import expect from 'expect'
import { config, mount, createLocalVue } from '@vue/test-utils'
import Component from '../../examples/todomvc/components/App.vue'
import store from '../../examples/todomvc/store'
config.stubs.transition = false