Skip to content

Instantly share code, notes, and snippets.

View yosit's full-sized avatar

Yosi Taguri yosit

  • ZipRecruiter
  • Israel
  • X @yosit
View GitHub Profile
@dfee
dfee / directory.py
Last active August 29, 2015 14:06
FreeSwitch mod_python Directories Example [modern]
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 = {
@a-v-ebrahimi
a-v-ebrahimi / AnimationHelepr
Created April 21, 2012 02:11
android animation helper for viewflipper
//flip1.setInAnimation(AnimationHelper
// .inFromRightAnimation(300));
// flip1.setOutAnimation(AnimationHelper
// .outToLeftAnimation(300));
package com.euphratesmedia.commonroutines;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
@mtrovilho
mtrovilho / Aircrack Commands
Last active January 11, 2020 21:08 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
// 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
@alexlarsson
alexlarsson / gist:c8e3277d2678c1061319
Last active June 2, 2020 00:41
Private files in docker container

Private files in docker container

It is sometimes necessary to have files in a container that shouldn't ever end up in an image. These files are generally some form of private key or password that aren't allowed to be distributed. This document details a few usecases for such files and their requirements.

Use Cases

Private keys for packages

@karanlyons
karanlyons / ZoomDaemon.yara
Last active July 12, 2021 14:07
Fixes for Zoom, RingCentral, Zhumu (and additional white labels) RCE vulnerabilities
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
{
@michael-dev2rights
michael-dev2rights / backup-github.conf.example
Last active December 29, 2021 02:37 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#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
@sararob
sararob / data-structure.js
Last active April 26, 2022 22:21
Role-based security in Firebase
/*
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
@jblang
jblang / a_mind_is_born.asm
Created September 6, 2017 20:14
A Mind is Born by Linus Akesson
; 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
@AjkayAlan
AjkayAlan / RaspberryPiDevSetup.sh
Last active May 21, 2022 15:58
Setup steps for my raspberry pi 3b+ for development
## Getting image and Pi up and running
# Go to https://www.raspberrypi.org/downloads/raspbian/ and download an image, then unzip it
# Download https://www.balena.io/etcher/ and install it
# Plug in microsd card, Unzip the downloaded image and use Etcher to write the downloaded image to the SD card
# Edit boot/config.txt, and uncomment hdmi_force_hotplug=1 and hdmi_drive=2
# Plug the PI in, and go through to setup prompts
# Run the following commands in terminal
## Config stuff
sudo raspi-config
@clementgenzmer
clementgenzmer / FBAnimationPerformanceTracker.h
Last active September 18, 2023 23:02
FBAnimationPerformanceTracker
/*
* 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