generate_openvpn_config.sh
Readonly interface generator. GitHub Gist: instantly share code, notes, and snippets. Skip to content. CLRLANGUAGE, ' Generate read-only interface '. To generate sitemaps on read-only filesystems (like Heroku) we generate them into a temporary directory (or any directory with write access) and then upload them to a remote server. As of 2012-07-12 SitemapGenerator includes some other adapters which you. Sep 06, 2017 Select Generate new token, enter in a name as the Token description and enable the repo checkbox. At this point in time, GitHub doesn't provide a way of setting the scope of a personal access token such that it has read-only access to repositories. Instead, one has to enable the repo scope which gives full control of private repositories.
#!/bin/bash |
# Easy script to create OpenVPN client configuration with the user, pre-generating user's |
# RSA key and certificate. |
# |
# Configuration template must exist in the same directory, with only missing part: certificates. |
# |
# (c) Dmytro Kovalov, 2015 |
# |
cd$(dirname ${BASH_SOURCE[0]}) |
read -p 'Please type in user name for the new config: ' USER |
[ -z${USER} ] && { echo'Cannot be empty';exit 1; } |
[ -f keys/${USER}.crt ] && { echo'Certificate keys/${USER}.crt already exists';exit 2; } |
source ./vars |
./build-key ${USER} |
( |
# This should be existing config template, with only missing certificates, and keys sections. |
cat config.ovpn.tpl |
echo'<key>' |
cat keys/${USER}.key |
echo'</key>' |
echo'<cert>' |
cat keys/${USER}.crt |
echo'</cert>' |
echo'<ca>' |
cat keys/ca.crt |
echo'</ca>' |
) > openvpn_${USER}.ovpn |
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
English | 中文
Generate Read Only Github Key Generator
Instruction
I am really a newcomer for bash language, and welcome pros to help improve the script.
The script is only for most 5th-8th generation CPU yet. I will try to add support for more models if needed.
The script can modify low frequency mode and energy performance preference, and use ResourceConverter.sh to generate customized
CPUFriendDataProvider.kext
.By using this script, no file under the System folder will be edited. If you are not happy with the modification, just remove
CPUFriend*.kext
from /CLOVER/kexts/Other/
and restart.Before install
- Read CPUFriend WARNING
- Good network
- If you have
FakeCPUID
argument inconfig.plist
, this script may cause issue - Make sure
IOPlatformPluginFamily.kext
untouched - Make sure Lilu is working
- Make sure you are using correct SMBIOS model
plugin-type=1
How to install
- Run this script in Terminal
- Copy
CPUFriend.kext
andCPUFriendDataProvider.kext
from desktop to/CLOVER/kexts/Other/
and restart.
Recovery
If you are not happy with the modification, just remove
CPUFriend.kext
and CPUFriendDataProvider.kext
from /CLOVER/kexts/Other/
and restart.Add Ssh Key To Github
If unfortunately, you can't boot into the system, and you are sure the issue is caused by
CPUFriend*.kext
,- Press
Space
when you are in Clover page - Use keyboard to choose
Block Injected kexts
-Other
- Check
CPUFriend.kext
andCPUFriendDataProvider.kext
- Return to the main menu and boot into the system, then delete
CPUFriend*.kext
from your CLOVER folder
Credits
Thanks to Acidanthera and PMHeart for providing CPUFriend.
Thanks to shuhung for providing configuration modification ideas.
Thanks to PMheart and xzhih for giving me advice.