This file contains hidden or 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
#!/usr/bin/python | |
import datetime | |
import sys | |
now = datetime.datetime.now() | |
nowTime = now.time() | |
downloadTimeStart = datetime.time(0,0) | |
downloadTimeEnd = datetime.time(6,0) |
This file contains hidden or 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 | |
if /home/drbergie/scripts/isAfterHoursDownloadTime.py; then | |
echo "starting download" | |
DOWNLOAD_PROGRESS_FILE=/tmp/downloadInProgress | |
LINKS_FILE=/home/drbergie/youtubelinks.txt | |
if [ ! -f $DOWNLOAD_PROGRESS_FILE ] ; then | |
echo "1" > $DOWNLOAD_PROGRESS_FILE |
This file contains hidden or 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
# NOTE THIS CODE CONTAINS NO BUGS | |
# see https://www.alphawave.co.za/ for more | |
def InterviewForEMSS( candidate ): | |
if (goodCV(candidate) == true): | |
if (onlineTestPass(candidate) == true): | |
if (faceToFaceInterviewPerformance(candidate) >= 95%): | |
# ;) https://xkcd.com/292/ | |
goto: Hire | |
goto: Not-Hire |
This file contains hidden or 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
# First sync old root then rew root. | |
# Mostly from http://askubuntu.com/a/3409/41258 | |
sudo rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' --exclude='/home' --exclude='/media' --exclude='/var/cache/zoneminder' /media/ubuntu/eb636436-ea9f-4e1b-bc71-5b46eb6e96a1/ /media/ubuntu/690ad96f-d072-41ef-9ebe-a524f891a2f6/ | |
sudo mkdir /media/ubuntu/690ad96f-d072-41ef-9ebe-a524f891a2f6/proc | |
sudo mount -B /proc /media/ubuntu/690ad96f-d072-41ef-9ebe-a524f891a2f6/proc | |
sudo mkdir /media/ubuntu/690ad96f-d072-41ef-9ebe-a524f891a2f6/dev | |
sudo mount -B /dev /media/ubuntu/690ad96f-d072-41ef-9ebe-a524f891a2f6/dev |
This file contains hidden or 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 (C) 2014 [email protected] | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
/* I used this with AWS Lambda (running Node 10.x) and [Asynchronous invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) | |
to trigger my glitch.com twitter bot. */ | |
var http = require('http'); | |
exports.handler = function(event, context, callback) { | |
http.get({ | |
host: process.env.HOST, | |
path: process.env.PATH |
This file contains hidden or 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
{ | |
"//1": "describes your app and its dependencies", | |
"//2": "https://docs.npmjs.com/files/package.json", | |
"//3": "updating this file will download and update your packages", | |
"name": "git-commit-bot", | |
"version": "0.0.1", | |
"description": "Tweet random git commits!", | |
"main": "server.js", | |
"scripts": { | |
"start": "node server.js" |
This file contains hidden or 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 com.example.yourapp; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.os.Build; | |
import android.security.KeyPairGeneratorSpec; | |
import android.security.keystore.KeyGenParameterSpec; | |
import android.security.keystore.KeyProperties; | |
import android.support.annotation.RequiresApi; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
eEarlyAllocBuffers(): consuming early alloc buffers with count 0 | |
11-14 11:52:38.796 488-5060/? D/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*) : alloc E count=5 size=24256512 | |
11-14 11:52:38.796 488-5060/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*):StreamMemsize 24256512 | |
11-14 11:52:38.796 488-5060/? D/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*) : alloc E count=5 size=24256512 | |
11-14 11:52:38.796 488-5060/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocStart(size_t, int, const char*):Memsize 24256512 | |
11-14 11:52:38.817 512-5029/? I/chatty: uid=1006(camera) mm-qcamera-daem expire 55 lines | |
11-14 11:52:38.853 1208-2435/? W/NetworkIdentity: Active mobile network without subscriber! | |
11-14 11:52:38.857 488-5060/? D/QCameraHWI_Mem: void qcamera::QCameraMemory::traceLogAllocEnd(size_t) : X | |
11-14 11:52:38.857 488-5060/? E/QCameraHWI_Mem: void qcamera::QCameraMemory::tr |
This file contains hidden or 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
# PowerShell Editor Services Bootstrapper Script | |
# ---------------------------------------------- | |
# This script contains startup logic for the PowerShell Editor Services | |
# module when launched by an editor. It handles the following tasks: | |
# | |
# - Verifying the existence of dependencies like PowerShellGet | |
# - Verifying that the expected version of the PowerShellEditorServices module is installed | |
# - Installing the PowerShellEditorServices module if confirmed by the user | |
# - Creating named pipes for the language and debug services to use (if using named pipes) | |
# - Starting the language and debug services from the PowerShellEditorServices module |
OlderNewer