Skip to content

Instantly share code, notes, and snippets.

View axsddlr's full-sized avatar
🎯
Focusing

Andre Saddler axsddlr

🎯
Focusing
View GitHub Profile
wget https://denh.am/db/add-goo.sh && bash add-goo.sh && rm add-goo.sh
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:orientation="vertical"
android:windowMinWidthMajor="@android:dimen/dialog_min_width_major">
<LinearLayout
#!/usr/bin/perl
######################################################################
#
# File : split_bootimg.pl
# Author(s) : William Enck <[email protected]>
# Description : Split appart an Android boot image created
# with mkbootimg. The format can be found in
# android-src/system/core/mkbootimg/bootimg.h
#
# Thanks to alansj on xda-developers.com for
@axsddlr
axsddlr / auto_split.sh
Last active August 29, 2015 14:07
Automate Extracting Items from Boot.img
#!/bin/bash
base=$(pwd)
tmp=$base/boot
C_H1="\033[1;36m" # highlight text 1
C_ERR="\033[1;31m"
C_CLEAR="\033[1;0m"
printhl()
@axsddlr
axsddlr / avi2mp4.sh
Last active August 23, 2016 23:47 — forked from kiwhite/avi2mp4.sh
Convert AVI to MP4 with ffmpeg
#! /bin/bash
timestamp=$( date +"%Y%m%d" )
base=${file%.*}
a1=$(ffprobe -i $VID 2>&1 |grep 'Stream #0:1'.| sed 's/\s.*$//')
a2=$(ffprobe -i $VID 2>&1 |grep 'Stream #0:2'.| sed 's/\s.*$//')
dir=$(pwd)
for VID in /media/gp/*.avi
do
#create folder
/* Program Threesum_C.c
**
** Counts the occurances of a specified number in an array.
**
**
*/
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
static long int count(long int *a); // prototype counting function
@axsddlr
axsddlr / threesum_fixed_i_think.c
Created March 29, 2017 03:47
Fixed (I think) threesum
/*
* threesum.c
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <iostream>
using namespace std;
long int factorial(int n);
int main() {
int n;
cout << "Enter Number ";
cin >> n;
#!/bin/bash
# Flush out the list before we begin
ipfw -q -f flush
# Set rules command prefix
cmd="ipfw -q add"
vpn="tun0"
# allow all local traffic on the loopback interface
$cmd 00001 allow all from any to any via lo0