Skip to content

Instantly share code, notes, and snippets.

@yarshure
yarshure / dmesg.txt
Created May 8, 2021
OpenBSD 6.9 arm64 at Parallels Desktop M1
View dmesg.txt
x# dmesg
OpenBSD 6.9 (GENERIC.MP) #1134: Sun Apr 18 01:53:35 MDT 2021
deraadt@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 2127040512 (2028MB)
avail mem = 2029289472 (1935MB)
random: good seed from bootblocks
mainbus0 at root: Parallels ARM Virtual Machine
psci0 at mainbus0: PSCI 1.0
cpu0 at mainbus0 mpidr 0: Unknown, MIDR 0x410f0000
cpu0: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
View AnimationName-1620462555037-308.css
.css-selector {
    background: linear-gradient(270deg, #19be13, #372788);
    background-size: 400% 400%;
    -webkit-animation: AnimationName 39s ease infinite;
    -moz-animation: AnimationName 39s ease infinite;
    -o-animation: AnimationName 39s ease infinite;
    animation: AnimationName 39s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 47%}
@Mosdatlan-falusi
Mosdatlan-falusi / block.bat
Created May 8, 2021
Creates a firewall rule for all .exe files in it s folder and in all folders below.
View block.bat
@echo off
@ setlocal enableextensions
@ cd /d "%~dp0"
echo.
echo This script file has to be copied to a folder that
echo contains the files you want to block on Windows Firewall.
echo It will block all .exe files in that folder and subfolders.
echo.
echo RUN IT AS ADMINISTATOR
View crash.txt
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 2021-05-08 11:29:06 EEST
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'modmenu'!
at Not Enough Crashes deobfuscated stack trace.(1.16.4+build.9)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke0(EntrypointUtils.java:53)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.invoke(EntrypointUtils.java:36)
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ОЧЕРЕДЬ
{
class Program
{
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created May 8, 2021
Rimworld output log published using HugsLib
View output_log.txt
Log uploaded on Saturday, May 8, 2021, 10:28:45 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.0.4.0]: 0Harmony(2.0.2), HarmonyMod(1.0.4)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
RimHUD [Deutsche Übersetzung](VulnXx230.RimHUDHQDeutscheHUbersetzungS)[mv:1.0]: (no assemblies)
Jucy Melons(heye.jucymelons): (no assemblies)
Pharmacist(fluffy.pharmacist)[mv:2.9.140]: FluffyExperiment(av:3.0.0,fv:3.8.1063), Pharmacist(av:2.0.0,fv:2.9.143)
Sand Castles(zylle.sandcastles): SandCastleMod(1.0.0)
Vanilla Furniture Expanded(VanillaExpanded.VFECore)[mv:1.1.0]: 0Harmony(av:2.0.2,fv:2.0.0.7), AOMoreFurniture(1.0.0)
View gist:79465f43806698be03ab7a6021d7e9b4
// Podfile.local中添加这个依赖进去
pod 'LookinServer', :configurations => ['Debug'], :git => 'https://github.com/QMUI/LookinServer', :tag => '1.0.0'
View TailRecursiveSum.kt
package chap4.Recursion.trailrecursion
import atomictest.eq
private tailrec fun sum(
n: Long,
accumulator: Long
): Long =
if (n == 0L) accumulator
else sum(n - 1, accumulator + n)
View NativeDemo.java
class NativeDemo{
public static void main(String[] args){
NativeDemo ob = new NativeDemo();
ob.test(); // call to native method
}
public native void test(); // native method without body
static{
System.loadLibrary("NativeDemo");
}
@yasinnaal
yasinnaal / Hangman.py
Created May 8, 2021 — forked from Petersonp/Hangman.py
Using python3, the hangman game was created. This is a two player game where the first player inputs a word, and the second player repeatedly guesses letter by letter. Code includes visuals as well.
View Hangman.py
import sys
import getpass
def hangman():
print("Get ready to play Hangman!")
word=getpass.getpass("Player 1, input your word: ").lower()
#turns the user inputted word into a lower case in one line
print('\n'*20)
#Spaces out the inputted word
start_game(word)
#calls back the function start_game