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
clone ~-2 ~-1 ~-1 ~ ~1 ~1 ~1 ~-1 ~-1 replace // +x | |
clone ~2 ~-1 ~-1 ~ ~1 ~1 ~-3 ~-1 ~-1 replace // -x | |
clone ~-1 ~-2 ~-1 ~1 ~ ~1 ~-1 ~1 ~-1 replace // +y | |
clone ~-1 ~2 ~-1 ~1 ~ ~1 ~-1 ~-3 ~-1 replace // -y | |
clone ~-1 ~-1 ~-2 ~1 ~1 ~ ~-1 ~-1 ~1 replace // +z | |
clone ~-1 ~-1 ~2 ~1 ~1 ~ ~-1 ~-1 ~-3 replace // -z | |
summon falling_block ~ ~1 ~ {Time:1,BlockState:{Name:redstone_block},Passengers:[{id:armor_stand,Health:0,Passengers:[{id:falling_block,Time:1,BlockState:{Name:activator_rail},Passengers:[ | |
{id:command_block_minecart,Command:"setblock ~1 ~4 ~ command_block{Command:'say +x',auto:1} replace"}, |
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 | |
# Bash hates CRLF, run 'sed -i -e "s/\r$//" script_name' to change from CRLF to LF | |
user=$(whoami) | |
sudo="/usr/bin/sudo" | |
stty -echoctl | |
if (( $# == 0 )); then | |
$sudo |
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
import requests | |
import stem.process | |
import stem.control | |
import stem | |
class Router: | |
control_port = 0 | |
socket_port = 0 | |
tor_process = None |
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
import cycles | |
import bpy | |
import sys | |
# blender -b file.blend -P Devices.py -o output_folder/frame_ | |
# blender -b file.blend -P Devices.py -F PNG -x 1 -a -o output_folder/frame_ | |
preferences = bpy.context.preferences | |
cycles_preferences = preferences.addons["cycles"].preferences | |
cycles_preferences.refresh_devices() |
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
$CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent() | |
if (!(New-Object Security.Principal.WindowsPrincipal($CurrentUser)).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Write-Host "Asking for privileges..." | |
Start-Process -FilePath "powershell" -ArgumentList ('-File', $MyInvocation.MyCommand.Source, $args | %{ $_ }) -Verb RunAs | |
exit | |
} | |
function KillProcess($Name) { | |
$Process = Get-Process $Name -ErrorAction SilentlyContinue |
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
import contextlib | |
import threading | |
import socket | |
import struct | |
from colorama import Fore, Back, Style | |
c_TargetsFile = "Targets.txt" | |
c_Timeout = 10 | |
c_Threads = 200 |
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
let CircuitMaker = {} | |
const Components = Object.freeze({ | |
NOR: 0, | |
AND: 1, | |
OR: 2, | |
XOR: 3, | |
Button: 4, | |
FlipFlop: 5, | |
LED: 6, |
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
import base64 | |
import json | |
import sys | |
if len(sys.argv) < 3: | |
print("Expected 2 arguments, capture file, and output folder\n\tpython Separate.py Capture.json Frames/") | |
exit() | |
File = open(sys.argv[1], 'r') |
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
import latest_user_agents | |
import contextlib | |
import threading | |
import requests | |
import socket | |
import urllib | |
import time | |
from urllib3.exceptions import InsecureRequestWarning | |
from urllib.parse import urlparse |
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
import pyperclip | |
import math | |
from PIL import Image, ImageOps | |
c_MaxColorDifference = 4 # 4, 8, 16 | |
c_TargetResolution = 176 | |
c_SliceOperations = 998 # 998 | |
c_DrawsPerFlush = 70 | |
c_MaxCubeSize = 60 |
NewerOlder