Skip to content

Instantly share code, notes, and snippets.

@weijarz
weijarz / twitter-hide-all-ads.js
Last active May 19, 2024 01:04
Twitter: Hide all Ads
// ==UserScript==
// @name Twitter: Hide all ads
// @namespace Violentmonkey Scripts
// @match https://x.com/*
// @grant none
// @version 1.0
// @author @weijarz
// @description 7/5/2023, 9:31:41 PM
// ==/UserScript==
@matteobarbieri
matteobarbieri / pair_k4.sh
Created March 31, 2021 12:26
Keychron K4 pairing script
#!/bin/bash
####################
### INSTRUCTIONS ###
####################
# 1. To speed up things, switch to bt mode and select the right channel (it will make things easier in the next steps)
# 2. Switch back to USB mode (so that you can actually enter commands)
# 3. Run this script and then quickly switch to bt mode and once the blinking stops hold FN + the corresponding bt channel;
# for instance, I have paired it with Windows on channel 1, and on Linux on channel 2, so in my case it's FN + 2. Release it

x86-64 ASM sheet

Addressing

  • No segmentation (except for fs and gs for special purposes like threading)

  • Relative to base register

    • used for data on the stack, arrays, structs and class members
    • [base + index * scale + immediate_offset]
  • base is mandatory, can be any 64-bit register

@tomasevich
tomasevich / remove-all-from-docker.md
Last active May 19, 2024 00:52 — forked from beeman/remove-all-from-docker.sh
Удалить/очистить все данные Докера (контейнеры, образы, тома и сети)

Удалить/очистить все данные Докера (контейнеры, образы, тома и сети)

Одной строкой

docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q)

Описание команд

@samdoran
samdoran / aerohive.md
Last active May 19, 2024 00:46
Configuring Aerohive access points using the CLI

Aerohive

Initial setup

  1. Reset to factory defaults

     reset config bootstrap
     reset config
    

    The username is admin and the password is aerohive or Aerohive1.

// ==UserScript==
// @name TweetXer
// @namespace https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16/
// @version 0.5
// @description Delete all your Tweets for free.
// @author Luca
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?domain=twitter.com
// @grant unsafeWindow
// ==/UserScript==
@marheiska
marheiska / Event Study
Created November 11, 2020 21:31
The performance of an Event Study (Python | AAR, CAR, t-test, betas, abnormal, stats)
import pandas_datareader as pdr
import pandas as pd
import numpy as np
from sklearn import linear_model
import scipy.stats as st
# Collect Data
data = pdr.DataReader(["TSLA","^GSPC"], 'yahoo','29-06-2010','01-01-2018')
data = data.drop(['High','Low','Open','Volume','Adj Close'], axis=1)
returns = data.pct_change(1) * 100
@michaelcurry
michaelcurry / rfc-template.md
Created September 29, 2016 18:07
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active May 19, 2024 00:37
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ