Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓
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 -eu | |
| _main(){ | |
| input_file="$1" | |
| file_path="$(realpath -s "$input_file")" | |
| file_name="$(basename "$file_path")" | |
| cd "$(dirname "$(realpath -s "${BASH_SOURCE[0]}")")" | |
| cp "$file_path" ./ | |
| git add "$file_name" |
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
| //place this content in your buildSrc/build.gradle file | |
| //Then apply your plugin to its own build in build.gradle | |
| import org.codehaus.groovy.control.CompilerConfiguration | |
| apply plugin: 'groovy' | |
| repositories { | |
| jcenter() | |
| } |
This gist includes a certificate renewal script, which I use to renew both of my LetsEncrypt certificates, as well as the systemd unit files necessary to automate it. It's currently set to run every 12 hours, and renews the certificates if they expire in less than 3 days. The certbot tool is required in order to use this script. Note that I generated my keys and CSR manually because I needed to add specific extensions to my certificates. That process is not covered here.
| Filename | Description |
|---|---|
01-getcert.sh |
The certificate renewal script. |
02-cli.ini |
Example Certbot configuration. |
03-getcert.timer |
The systemd timer unit file. |
04-getcert.service |
The systemd service unit file. |
05-openssl.conf |
Example openssl.conf for the CSR |
06-getcert-ddns.sh |
DDNS version of the renewal script. |
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 | |
| address=https://ilo.mysite.com:34043 | |
| username=Administrator | |
| password=******** | |
| session_key=$( | |
| curl -fsS \ | |
| --insecure \ | |
| "$address/json/login_session" \ |
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 | |
| # Give the usual warning. | |
| clear; | |
| echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds..."; | |
| sleep 10; | |
| clear; | |
| # Download and extract exploit files. | |
| echo "[INFO] Downloading exploit files from GitHub..."; |
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 python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping |
- [http://crok.homelinux.com/] --
- [https://crok.homelinux.com/shell/] -- SSHS
- [http://gmail.com/] --
- [https://mail.bt.com/owa] --
- [https://web.telegram.org/] --
- [https://admin.dc1.arubacloud.hu/Manage/Server/ServerDetails.aspx] --
- [http://index.hu/] -- Index
- [http://www.haon.hu/] -- haon
- [https://www.idokep.hu/idojaras/Debrecen] -- Időkép
- [http://koponyeg.hu/t/Debrecen] -- köpönyeg
Sources:
- http://www.reddit.com/r/linux/comments/3au2s7/
- https://drive.google.com/file/d/0B-ScYJ0UgNZFMzlxMG42XzJMVm8/view?usp=sharing
- https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt
{I am merely transcribing and do not take any responsibility for the accuracy of the original text.}
Need root before you can run this. You can also go to the directory and change it by hand, though this is a bit quicker. If you have a 4 core, the cpu's are numbered 0, 1, 2, 3.