Skip to content

Instantly share code, notes, and snippets.

import glob
import gzip
import json
import multiprocessing
import os
import os.path as osp
import tqdm
import habitat
@Kurotaku-sama
Kurotaku-sama / Streamlabs HitsquadGodfather improvements.user.js
Last active May 17, 2024 15:35
A script for some improvements for Streamlabs for HitsquadGodfather
// ==UserScript==
// @name Streamlabs HitsquadGodfather improvements
// @name:de Streamlabs HitsquadGodfather verbesserungen
// @namespace kurotaku.de
// @version 1.1
// @description A script for some improvements for Streamlabs for HitsquadGodfather
// @description:de Ein Skript für einige Verbesserungen für Streamlabs für HitsquadGodfather
// @author Kurotaku
// @license MIT
// @match https://streamlabs.com/dasteamgodfather*

Boom环境的搭建

  • 关于RISCV的综述介绍,请参看[本链接][综述]
  • 此安装步骤基于 Ubuntu 16.04
  • 从github上clone的Boom不可以直接运行,需要Rocket Chip Generator以及riscv-tool工具链

[ucb riscv实验教程][ucb_lab]

  • riscv工具可以生成Verilog的仿真器
  • 所有的export请自行添加至~/.bashrc
  • 本步骤尚不完善,后续及时更新,
  • 如有任何建议,请联系lpn709695399@163.com. FPGA启动操作系统
@Arkellys
Arkellys / REG.md
Last active May 17, 2024 15:34
A short guide to answer some of the most common questions and issues on React+Electron apps.
@simonw
simonw / recover_source_code.md
Last active May 17, 2024 15:33
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@dideler
dideler / bot.rb
Last active May 17, 2024 15:33
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@Kurotaku-sama
Kurotaku-sama / ItzaGud improvements.user.js
Last active May 17, 2024 15:33
Some improvements for ItzaGud.net, all of them can be disabled in the config (Topbar | Bottom of mobile navbar)
// ==UserScript==
// @name ItzaGud.net improvements
// @name:de ItzaGud.net Verbesserungen
// @namespace kurotaku.de
// @version 0.6.5
// @description Some improvements for ItzaGud.net, all of them can be disabled in the config (Topbar | Bottom of mobile navbar)
// @description:de Einige Verbesserungen für ItzaGud.net, die alle in der Konfiguration deaktiviert werden können (Topbar | Unten in der Mobilen Navigationsleiste)
// @author Kurotaku
// @license MIT
// @match https://itzagud.net/*
@dhoeric
dhoeric / Ubuntu 16.04
Last active May 17, 2024 15:30
install-docker-aws-ec2-user-data
#!/bin/bash
# Install docker
apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
@janasco
janasco / AnyDesk-Reset.cmd
Created August 3, 2023 09:46
AnyDesk Reset
@echo off & setlocal enableextensions
title Reset AnyDesk
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit)
chcp 437
call :stop_any
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf"
del /f "%APPDATA%\AnyDesk\service.conf"
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\"
rd /s /q "%temp%\thumbnails" 2>NUL
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails"
@AfroThundr3007730
AfroThundr3007730 / Rocky_9_STIG_notes.md
Last active May 17, 2024 15:30
Notes on getting Rocky 9 and Ubuntu 24.04 compliant with DISA STIGs

Rocky 9 STIG notes

RHEL-09-211045: Red Hat Enterprise Linux 9 Security Technical Implementation Guide :: Version 1, Release: 2 Benchmark Date: 24 Jan 2024

Updated on 2024-04-05

Utilities

All fix and check commands must be run as root.