Skip to content

Instantly share code, notes, and snippets.

Avatar

Yosi Taguri yosit

View GitHub Profile
@karanlyons
karanlyons / ZoomDaemon.yara
Last active Oct 29, 2020
Fixes for Zoom, RingCentral, Zhumu (and additional white labels) RCE vulnerabilities
View ZoomDaemon.yara
private rule Macho
{
meta:
description = "private rule to match Mach-O binaries (copied from Apple's XProtect)"
condition:
uint32(0) == 0xfeedface or uint32(0) == 0xcefaedfe or uint32(0) == 0xfeedfacf or uint32(0) == 0xcffaedfe or uint32(0) == 0xcafebabe or uint32(0) == 0xbebafeca
}
rule ZoomDaemon
{
@rdump
rdump / kubectl-multi-version-brews.md
Last active Jan 12, 2021
kubectl multi-version brews (kubernetes-cli formula)
View kubectl-multi-version-brews.md

kubectl multi-version brews

We need to run multiple versions of kubectl for compatibility with various kubernetes clusters.

It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.

With brew, it's simple to:

  • Install a bunch of versions of kubectl (in the kubernetes-cli Formula)
  • Switch between them as needed
@jblang
jblang / a_mind_is_born.asm
Created Sep 6, 2017
A Mind is Born by Linus Akesson
View a_mind_is_born.asm
; A Mind is Born by Linus Akesson
; https://linusakesson.net/scene/a-mind-is-born/index.php
; transcribed to 64tass and further commented by J.B. Langston
; important locations after program is copied to zero page
vmptr = $cb ; video matrix
clock = $13 ; global clock lsb - indicates position within bar
clock_msb = $20 ; global clock msb - indicates bar of song
script = $21 ; poke table
@mtrovilho
mtrovilho / Aircrack Commands
Last active Jan 11, 2020 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
View Aircrack Commands
// Install the latest Xcode, with the Command Line Tools.
// Install Homebrew
// Install aircrack-ng:
brew install aircrack-ng
// Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport
// Figure out which channel you need to sniff:
sudo airport -s
@timmolderez
timmolderez / pom.xml
Last active Jan 25, 2021
Adding dependencies to local .jar files in pom.xml
View pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@michael-dev2rights
michael-dev2rights / backup-github.conf.example
Last active Feb 7, 2017 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
View backup-github.conf.example
#This is an example configuration file. You must set the values marked <CHANGE-ME>
GHBU_ORG="<CHANGE-ME>" # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME="<CHANGE-ME>" # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD="<CHANGE-ME>" # the password for that account
#The following are default values. Change and uncomment if you want to alter the default.
#GHBU_BACKUP_DIR="github-backups" # where to place the backup files
@karpathy
karpathy / min-char-rnn.py
Last active Jan 25, 2021
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
View FBAnimationPerformanceTracker.h
/*
* This is an example provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
@dfee
dfee / directory.py
Last active Aug 29, 2015
FreeSwitch mod_python Directories Example [modern]
View directory.py
from collections import defaultdict
import freeswitch
sound_path_prefix = "/usr/local/freeswitch/sounds/custom/"
def text_to_digit(text, len):
"""Map text to digits"""
atoi_d = {
@sararob
sararob / data-structure.js
Last active Dec 22, 2020
Role-based security in Firebase
View data-structure.js
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR