Skip to content

Instantly share code, notes, and snippets.

View oscarcpozas's full-sized avatar
🦕
Esta bailongo

Óscar Caballero oscarcpozas

🦕
Esta bailongo
View GitHub Profile
@JcMinarro
JcMinarro / adbIp.sh
Created August 20, 2014 10:40
Script to connect Android devices to ADB over tcpip
#/bin/bash
adb devices
echo "Waiting for device"
adb wait-for-device
ip=$(adb shell ifconfig wlan0 | cut -f3 -d ' ')
echo "Device ip: $ip"
echo "Setting Up tcpip port"
adb tcpip 5555
echo "Connecting to $ip"
adb connect $ip
@lopspower
lopspower / README.md
Last active November 7, 2024 15:09
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@celso
celso / init.vim
Last active October 30, 2024 17:30
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@widdowquinn
widdowquinn / kali_osx_persistence_wifi.md
Last active January 28, 2024 06:32
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

gif-from-tweet

There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.

Dependencies

  • ffmpeg
    • macOS: brew install ffmpeg
    • Ubuntu/Debian: apt install ffmpeg
@FireZenk
FireZenk / build.gradle
Created March 30, 2020 14:04
Obfuscate jar from java-library gradle projects
import proguard.gradle.ProGuardTask
import java.nio.file.Paths
dependencies {
[...]
// Required by @task::obfuscate
compileOnly 'org.jetbrains:annotations:13.0'
}
def jarNameWithoutExtension = jar.archiveName.with { it.take(it.lastIndexOf(".")) }