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
source: https://youtu.be/b3AN2wY4qAM | |
reference: https://nci.university/opt-in-page-page?utm_source=youtube&utm_content=10070 | |
extract: | |
description: 20 indicators of psychological manipulation | |
content: | |
- The Fate Model: | |
Focus: | |
- does it feel like everything points to the same thing (target fixation)? | |
- is there unnatural (spam) repetition of messaging? | |
- is there obvious or ambiguous reason why this particular focus now? |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/python3 | |
import salt | |
import sys | |
if __name__ == '__main__': | |
MINION_NAME = 'salt-cloud' | |
HOSTNAME = sys.env['hostname'] | |
FOLDER = sys.env['folder'] | |
IP = sys.env['ip'] |
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 [ -z "$1" ] || [ -z "$2" ] | |
then | |
echo "ERROR: must supply CLI arguments for source and destination paths" >&2 && | |
exit 1 | |
fi | |
export SRCVOL="$1" | |
export DSTVOL="$2" |
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 | |
# Starting from the work detailed on | |
# https://github.com/zfsonlinux/zfs/wiki/Ubuntu-18.04-Root-on-ZFS | |
ROOTPASSWD='ch4ng3m3P13453' | |
if [ -z "$HOSTNAME" ] | |
then | |
echo env HOSTNAME must be set >&2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# Put this .javapath file in your home directory with execute permission. | |
# Run it to create java dotfiles in your home directory to set up | |
# PATH and JAVA_HOME for indicated java distros | |
# Source the resulting dotfiles to switch current JAVA | |
if (return 2>/dev/null) | |
then | |
PATH=$(echo "$PATH" | | |
awk -F: '{for (i=1;i<=NF;i++){print $i}}' | |
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
public class ReportCpuCount { | |
public static void main(String[] args) throws Exception{ | |
while(true){ | |
System.out.printf("#Found %d CPUs%n", Runtime.getRuntime().availableProcessors()); | |
Thread.sleep(1000); | |
} | |
} | |
} |
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
if {}: | |
print("yay!") | |
else: | |
print("boo!") |
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
import os, pandas | |
cwd = os.getcwd() # this is where to find the csv directories and files | |
dfs = {} # this is where we will put the pandas DataFrame for each color | |
for root, dirs, files in os.walk(cwd): | |
for fn in files: | |
if fn.endswith(".csv"): # skip non csv files silently | |
color = fn.split('.',3)[1] # extract color name like 'ABC' or 'DEF' | |
fqpn = os.path.sep.join((root,fn)) # construct a filename to read |
NewerOlder