Information, Knowledge, Education, and Instruction must always be open & free.
Old version: https://gist.github.com/still-lake/0aa599daf084ad2c095fd6d21d857002
Information, Knowledge, Education, and Instruction must always be open & free.
Old version: https://gist.github.com/still-lake/0aa599daf084ad2c095fd6d21d857002
#!/usr/bin/perl -w | |
use strict; | |
@ARGV or die "Usage: $0 PNGFILE...\nOutputs the file names of the PNG files with trailing data."; | |
FILE: while (@ARGV) { | |
my $fn = shift; | |
eval { | |
no warnings 'exiting'; |
#!/usr/bin/env python | |
# | |
# Copyright (c) 2017, Piotr Przymus | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
#!/bin/env bash | |
curl -s -d '{"voice": "'"$1"'", "text": "'"$2"'"}' -H "Content-Type: application/json" -H "Context-Type: application/json" https://streamlabs.com/polly/speak | jq -r '.speak_url' | xargs curl -s -0 --output - | ffmpeg -y -i pipe:0 -vn -acodec copy "$3.ogg" |
#!/data/data/com.termux/files/usr/bin/bash | |
yes | pkg upgrade && \ | |
yes | pkg install \ | |
python \ | |
python-dev \ | |
libffi \ | |
libffi-dev \ | |
openssl \ |
#Before we can use the script, we have to make it executable with the chmod command: | |
#chmod +x ./go-executable-build.sh | |
#then we can use it ./go-executable-build.sh yourpackage | |
#!/usr/bin/env bash | |
package=$1 | |
if [[ -z "$package" ]]; then | |
echo "usage: $0 <package-name>" | |
exit 1 | |
fi |
# Add to file: /etc/fail2ban/jail.local | |
[nginx-badbots] | |
enabled = true | |
port = http,https | |
filter = nginx-badbots | |
logpath = %(nginx_access_log)s | |
maxretry = 1 | |
findtime = 604800 | |
bantime = 604800 |
''' | |
Circuitous, LLC - | |
An Advanced Circle Analytics Company | |
Summary: Toolset for New-Style Classes | |
1. Inherit from object. | |
2. Instance variables for information unique to an instance. | |
3. Class variables for data shared among all instances. | |
4. Regular methods need "self" to operate on instance data. |
// Dracula colors | |
* { | |
background: rgba ( 40, 42, 54, 100 % ); | |
current-line: rgba ( 68, 71, 90, 100 % ); | |
selection: rgba ( 68, 71, 90, 100 % ); | |
foreground: rgba ( 248, 248, 242, 100 % ); | |
comment: rgba ( 98, 114, 164, 100 % ); | |
cyan: rgba ( 139, 233, 253, 100 % ); | |
green: rgba ( 80, 250, 123, 100 % ); | |
orange: rgba ( 255, 184, 108, 100 % ); |