View usb-unlock
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/sh | |
set -e | |
file="usbtries.txt" | |
if [ -e ${file} ]; then | |
count=$(cat ${file}) | |
else | |
count=0 | |
fi |
View remove.php
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
/** | |
* Remove the specified user from all repositories | |
* that we are authenticated to see and manage. | |
*/ |
View docker.sh
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 | |
apt update; | |
apt install -y ca-certificates curl gnupg lsb-release; | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg; | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null; | |
apt update; | |
apt install -y docker-ce docker-ce-cli containerd.io; | |
usermod -aG docker ubuntu; | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose; |
View asciitable.php
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
function generateAsciiTable($data) | |
{ | |
// Generate row widths | |
$rowWidths = []; | |
foreach ($data as $row) { | |
foreach ($row as $index => $cell) { | |
if (!isset($rowWidths[$index])) { | |
$rowWidths[$index] = strlen($cell) + 2; | |
} else { |
View backup.py
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
import sqlite3 | |
import os | |
import uuid | |
import shutil | |
import re | |
print('ios backup python script for linux (ubuntu)') | |
# this function helps traverse the returned results from the db | |
def dict_factory(cursor, row): |
View singleton.m
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
// | |
// singleton.m | |
// | |
#import "singleton.h" | |
typedef void(^ CompletionBlock)(NSData*, NSURLResponse*, NSError*); | |
@implementation singleton | |
@synthesize vData; |