These instructions are an amalgam of steps presented by Wired’s Robbie Gonzalez, Phil of thecubicle.com, and JPerm of YouTube fame.
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/env bash | |
set -eou pipefail | |
sec_list=$(gcloud secrets list --format="table[no-heading](name.basename())") | |
for s in ${sec_list[*]}; | |
do | |
sec=$(gcloud secrets versions access latest --secret="$s") | |
printf "%s: %s\n" $s $sec | |
done |
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 | |
clear | |
for f in {1..10} | |
do | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run > /dev/null 2>&1 | |
done | |
vcgencmd measure_temp |
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/env bash | |
#TODO: call ddcutil detect and parse output for actual devices; only constants should be VCP code and vars | |
# related to ddcutil | |
BUS_FLAG="-b" | |
I2C_ID=5 | |
CMD="ddcutil" | |
GETTER=getvcp | |
SETTER=setvcp |
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
//Borrowed from https://github.com/reneargento/algorithms-sedgewick-wayne/blob/master/src/chapter3/section4/Exercise4.java | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* Created by Rene Argento on 19/07/17. | |
* Modified on 10/30/2019 | |
*/ | |
public class Exercise4Mod |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
#include <string.h> | |
#include <time.h> | |
/* | |
* generates an unsigned int between low and high, inclusive of both | |
* taken from: https://en.cppreference.com/w/c/numeric/random/rand | |
* |
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
#include <iostream> | |
#include <stdio.h> | |
#include <limits> | |
int main() | |
{ | |
std::cout << "Integers: \n"; | |
std::cout << "\tType\t\tSize (Bits)\tLowest\t\tMin\t\tMax\n"; | |
std::cout << "____________________________________________________________________________\n"; |
I hereby claim:
- I am socketbox on github.
- I am chb (https://keybase.io/chb) on keybase.
- I have a public key ASCl2ulrlMT_HOe0YGLssnXbJHQgK_JMMVU8zT64pIrrJAo
To claim this, I am signing this object:
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
$fso = Get-ChildItem -Recurse -path C:\fso | |
$fsoBU = Get-ChildItem -Recurse -path C:\fso_BackUp | |
Compare-Object -ReferenceObject $fso -DifferenceObject $fsoBU |
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
USE master; | |
ALTER DATABASE [db_name] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
DROP DATABASE [db_name]; |