This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"github.com/google/go-github/github" | |
"golang.org/x/oauth2" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<project path="device/htc/k2_cl" name="SimonSickle/android_device_htc_k2_cl" /> | |
<project path="vendor/htc/k2_cl" name="SimonSickle/android_vendor_htc_k2_cl" /> | |
<project path="kernel/htc/k2_cl" name="SimonSickle/cm_kernel_htc_k2_cl" /> | |
<project path="device/htc/msm8960-common" name="CyanogenMod/android_device_htc_msm8960-common" /> | |
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
mkfs.ext4 /dev/sda2 | |
mkfs.btrfs -f /dev/sda3 | |
mkfs.btrfs -f /dev/sda4 | |
mkfs.btrfs -f /dev/sda5 | |
mkfs.btrfs -f -d single /dev/sda6 /dev/sdb1 /dev/sdc1 | |
mount /dev/sda3 /mnt/gentoo | |
mkdir /mnt/gentoo/{home,usr,var,boot} | |
mount /dev/sda2 /mnt/gentoo/boot | |
mount /dev/sda4 /mnt/gentoo/var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = $_GET['f']; | |
$base_directory = "/home/foo/site_files/"; | |
$final_check = $base_directory.$file; | |
if (file_exists($final_check)) { | |
echo "1"; | |
} else { | |
echo "0"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_config = require_once("config.php"); | |
$baseDir = $_config['base_file_dir']; | |
$hiddenFiles = $_config['hidden_files']; | |
$dir = $_GET['dir']; | |
$sort = $_GET['sort']; | |
$pretty = $_GET['pretty']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Below place your directory you want to search. For example below shows allfolders/allfiles.zip | |
list=*/*.zip | |
# Place file extension of a seperate file that you require to occompany your other files | |
extraextension=.md5 | |
for i in $( ls $list ); do | |
if [ ! -f $i.$extraextension ]; then | |
md5sum $i > $i.$extraextension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DOCTYPE html> | |
<header> | |
<title>Carbon Changelog</title> | |
</header> | |
<body> | |
<?php | |
// Get JSON Data | |
$jsonraw = file_get_contents("https://review.carbonrom.org/changes/?q=status:merged"); | |
$json = json_decode(preg_replace('/^.+\n/', '', $jsonraw)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// A script to list devices and their "friendly" names | |
$devices = array( | |
"deb" => "Google Nexus 7 2013 (4G)", | |
"flo" => "Google Nexus 7 2013 (Wi-Fi)", | |
"grouper" => "Google Nexus 7 (Wi-Fi)", | |
"endeavoru" => "HTC One X", | |
"m7" => "HTC One (GSM)", | |
"m7spr" => "HTC One (Sprint)", | |
"m7vzw" => "HTC One (Verizon)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###################################################### | |
# Copyright 2014 (c) Simon Sickle # | |
# MIT LICENSE # | |
###################################################### | |
# Notes: Run this script from the directory containing | |
# the android source. Modify variables at the top to | |
# customize the upload. Meant for AOSP. Enjoy! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2015 Simon Sickle <simon@simonsickle.com> | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
* GNU General Public License for more details. |
OlderNewer