Skip to content

Instantly share code, notes, and snippets.

View pmache's full-sized avatar
💭
I'm always slow to respond.

Athema pmache

💭
I'm always slow to respond.
View GitHub Profile
@punchagan
punchagan / scrape_google_groups.py
Last active February 19, 2022 13:23
A simple script to scrape a google group.
import json
from os.path import exists
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import TimeoutException
class GoogleGroupsScraper(object):
""" A simple class to scrape a google group. """
@terrehbyte
terrehbyte / UsefulUnityAssets.md
Last active June 24, 2024 19:06
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."

Code
Releases

@eahydra
eahydra / inbv.h
Created May 19, 2015 02:03
use Inbv API display string in Kernel Mode. Under Windows7 x64
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt).
If you do not agree to the terms, do not use the code.
Module Name:
@ststeiger
ststeiger / Windows10.reg.txt
Last active April 25, 2024 08:42
Windows 10 registry settings
To disable "This file comes from another computer"
Disable blocking when files are downloaded, open the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments\SaveZoneInformation
Change SaveZoneInformation to 1.
NOTE:
0 = Not Configured
@dbirks
dbirks / change-last-logged-on-user-windows-10.md
Last active June 3, 2024 02:07
Change last logged on user on Windows 10

In Windows 10 you can no longer change the last logged on user in the registry like you could in Windows 7. Windows 10 requires the user's SID to be entered as well. Here's an updated guide.

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI, you'll want to change 4 entries:

  • LastLoggedOnDisplayName
    • Enter the user's full name, like Allan Jude
  • LastLoggedOnSAMUser
    • Enter the username, like SHORTDOMAIN\allan.jude
  • LastLoggedOnUser
  • Enter the username again, like SHORTDOMAIN\allan.jude
@gaypunkposer
gaypunkposer / AutoSave.cs
Last active November 16, 2023 11:39
Unity auto save script. Throw in Assets/Editor. Saves assets and scene when playing a scene.
//Works on Unity 5.3+
using UnityEditor;
using UnityEditor.SceneManagement;
[InitializeOnLoad]
public class AutoSave
{
//Constructor called by Unity Editor
static AutoSave()
@repa6
repa6 / gist:cacf621ff3e085c2c0a50c73c116f90b
Last active February 25, 2023 11:07
Windows 10 SMBv1 enable
Specifically....running cmd.exe as administrator
C:\Windows\system32\dism /online /enable-feature /featurename:SMB1Protocol-Server
Check that it is working by:
C:\Windows\system32\dism /online /get-features /format:table | find "SMB1"
SMB1Protocol | Enabled
SMB1Protocol-Client | Enabled
SMB1Protocol-Server | Enabled
@GFX47
GFX47 / EditorTools.cs
Created May 22, 2018 15:30
Unity3D - Select assets
using UnityEditor;
using UnityEngine;
public class EditorTools
{
public static Object GetAsset(string name = null, string type = null)
{
string search = string.Empty;
if (!string.IsNullOrEmpty(name))
{
@jburwell
jburwell / provision-laptop.ps1
Last active February 25, 2023 11:03
Windows 10 Configuration
[CmdLetBinding()]
Param([switch] $FullInstall)
Set-StrictMode -Version "2.0"
$logFile = "provision." + (Get-Date -Format FileDateTime) + ".log"
# TODO Add output timestamps
function Log-Message {
[CmdLetBinding()]
@hikiko4ern
hikiko4ern / .bash_aliases
Last active October 29, 2023 20:24
Pikachu test passed (demo: https://asciinema.org/a/236096)
# /------------------------------------------\
# | don't forget to download the .tp file |
# | and place it in the user's directory :› |
# | |
# | also install lolcat: |
# | https://github.com/busyloop/lolcat |
# \------------------------------------------/
alias test-passed='if [ "$?" -eq "0" ]; then lolcat ~/.tp -a -s 40 -d 2; fi;'