Skip to content

Instantly share code, notes, and snippets.

View kamirbarron's full-sized avatar
👠
yes

Korronka kamirbarron

👠
yes
View GitHub Profile
@kamirbarron
kamirbarron / android.md
Created June 4, 2019 01:54 — forked from geekygecko/android.md
Android Cheat Sheet

Android Cheat Sheet

Developer tips

Record a video of your app

Developer options -> Check show touches
adb shell screenrecord /sdcard/video.mp4
adb pull /sdcard/video.mp4
@kamirbarron
kamirbarron / .adb
Created June 2, 2019 12:11 — forked from simonas-dev/.adb
Android Debug Bridge(adb) alias
function adbc () {
IP=`adb shell ifconfig wlan0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'`
adb tcpip 5555
adb connect $IP
adb devices
}
function adbscr () {
echo "Shoot"
adb shell screencap -p /sdcard/screen.png
@kamirbarron
kamirbarron / AdbCommands
Created March 17, 2019 18:21 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@kamirbarron
kamirbarron / jquery.column.js
Created December 26, 2018 21:01 — forked from mindplay-dk/jquery.column.js
jQuery: find all cells (td/th) in a column of a table
/**
* Find all cells (td/th) in the column of the current cell.
* (excluding rows with cells that span multiple columns.)
*/
(function($) {
$.fn.column = function() {
return $(this)
.filter('th, td')
@kamirbarron
kamirbarron / script.js
Created July 9, 2018 15:43
three.js particle animate
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@kamirbarron
kamirbarron / submit-to-urlscan.ps1
Created May 11, 2018 20:46
PowerShell snippet for submitting to urlscan.io - By Nicholas Gipson
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$Invoke = Invoke-WebRequest -Headers @{"API-Key" = "$apikey"} -Method Post ` -Body "{`"url`":`"$url`"}" -Uri https://urlscan.io/api/v1/scan/ ` -ContentType application/json
<?php
/**
* Use an HTML table to create a Caldera Forms email layout that is roughly the same as form layout
*
* Work in progress
*/
add_action( 'caldera_forms_mailer', function( $mail, $data, $form, $entry_id ){
include_once CFCORE_PATH . 'classes/caldera-grid.php';