sudo apt remove --purge ubuntu-advantage* -y
sudo apt autoremove -y
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/sh | |
| INTERFACE="vpn0" | |
| MARK=100 | |
| TABLE="vpn" | |
| SCRIPT_NAME="/etc/wireguard/scripts/vpn.sh" | |
| # set this to the interface(s) on which you want WAN traffic to | |
| # be routed through vpn. separate interfaces with spaces. | |
| # e.g. "br0" or "br0 br1" etc. |
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 EnvironmentVariableLoggingLevelSwitch : LoggingLevelSwitch | |
| { | |
| public EnvironmentVariableLoggingLevelSwitch(string environmentVariable, | |
| LogEventLevel defaultLevel = LogEventLevel.Information) | |
| { | |
| MinimumLevel = | |
| Enum.TryParse<LogEventLevel>(Environment.GetEnvironmentVariable(environmentVariable), true, | |
| out var level) | |
| ? level | |
| : defaultLevel; |
Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.
Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27
If you have any linux machine, use that or install a vm if you don't have one.
Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx
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 IdleClient : IDisposable | |
| { | |
| private readonly string _host, _username, _password; | |
| private readonly SecureSocketOptions _sslOptions; | |
| private readonly int _port; | |
| private readonly CancellationTokenSource _cancel; | |
| private CancellationTokenSource _done; | |
| private bool _messagesArrived; | |
| private readonly ImapClient _client; | |
| private readonly bool _deleteOnProcessed; |
[alias]
gl = "!git log --graph --pretty=format:'[ %Cred%h%Creset | %Cblue%an%Creset | %Cgreen(%cr)%Creset ] ->%C(yellow)%d%Creset %s' --abbrev-commit --date=relative"
- Disable FileVault (System Preferences -> Security & Privacy -> FileVault -> Turn Off Filevault)
- Boot to recovery mode by holding
Command + Rduring boot
- Open Terminal
- Run
csrutil authenticated-root disableto disable signature validation on the bootable snapshots - Run
ioreg -l | grep board-idto get your board ID and write it down.
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 static class GetServiceProvider | |
| { | |
| public static IServiceProvider _ { get; set; } | |
| public static T GetServiceOrCreateInstance<T>() | |
| { | |
| return ActivatorUtilities.GetServiceOrCreateInstance<T>(_); | |
| } | |
| public static object GetServiceOrCreateInstance(Type type) |
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
| class Program | |
| { | |
| // AutoResetEvent to signal when to exit the application. | |
| private static readonly AutoResetEvent WaitHandle = new AutoResetEvent(false); | |
| static async Task Main(string[] args) | |
| { | |
| var version = FileVersionInfo.GetVersionInfo(typeof(Program).Assembly.Location).ProductVersion; | |
| Console.WriteLine($"[APP] version {version}"); | |
| Console.WriteLine("[GITHUB_LINK]\n"); |
NewerOlder