Skip to content

Instantly share code, notes, and snippets.

View miuirussia's full-sized avatar
☺️
Working

Kirill Kuznetsov miuirussia

☺️
Working
View GitHub Profile
@miuirussia
miuirussia / encrypt_openssl.md
Created May 11, 2022 12:51 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

  1. Upgrade to Catalina
  2. Save some space: sudo rm -rf /Users/Shared/Relocated\ Items/Security/nix (this is where my existing nix store got moved)
  3. Ask for a mountpoint: sudo bash -c "echo nix >> /etc/synthetic.conf"
  4. Reboot. This creates /nix as a synthetic, essentially read-only (mount-only?) folder.
  5. Run sudo diskutil apfs addVolume disk1 APFSX Nix -mountpoint /nix to create a volume and mount it on /nix.
  6. Run sudo bash -c 'echo "LABEL=Nix /nix apfs rw" >> /etc/fstab' to instruct macOS to remount on reboot.
  7. Run diskutil ap encryptVolume Nix -user disk to encrypt the volume (if desired, but there is really not much of a reason not to). You'll have to choose a passphrase and type it twice.
  8. Reboot. Make sure /nix is mounted and you have write access. If you have encrypted the volume, you will be asked for the passphrase and have the option of ticking a checkbox to save it in the keychain.
  9. Run bash <(curl https://nixos.org/nix/install). Notice that there is no need for sudo here as
#!/usr/bin/env bash
set -euo pipefail
wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" \
$(curl -s http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html | \
awk "/downloads\['/ && ! /demos/ && /\['files'\]/ && /linux-x64/ && /\.tar\.gz/" | \
grep -o 'http.*\.tar\.gz'\
)
From 511e0aa028b54ffee09da56f35d9cab17c1e4764 Mon Sep 17 00:00:00 2001
From: Kirill Kuznetsov <kirill.desirehd@gmail.com>
Date: Mon, 11 Sep 2017 20:14:53 +0300
Subject: [PATCH] [UNIX] Fix jobstop not killing processes with SIGKILL
---
src/nvim/event/process.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git i/src/nvim/event/process.c w/src/nvim/event/process.c
{
"env": {
"node": true,
"es6": true,
"browser": true
},
"rules": {
"accessor-pairs": "off",
"array-callback-return": "error",
"block-scoped-var": "error",
@miuirussia
miuirussia / fml-client-latest.log
Last active October 15, 2015 14:50
More info
This file has been truncated, but you can view the full file.
[17:49:17] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[17:49:17] [main/INFO] [FML/]: Forge Mod Loader version 7.99.32.1517 for Minecraft 1.7.10 loading
[17:49:17] [main/INFO] [FML/]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_60, running on Windows 10:amd64:10.0, installed at C:\Program Files\Zulu\zulu-8\jre
[17:49:17] [main/DEBUG] [FML/]: Java classpath at launch is C:/Users/game/Desktop/MultiMC/jars/NewLaunch.jar
[17:49:17] [main/DEBUG] [FML/]: Java library path at launch is C:/Users/game/Desktop/MultiMC/instances/LightPack/natives
[17:49:17] [main/DEBUG] [FML/]: Enabling runtime deobfuscation
[17:49:17] [main/DEBUG] [FML/]: Instantiating coremod class FMLCorePlugin
[17:49:17] [main/DEBUG] [FML/]: Added access transformer class cpw.mods.fml.common.asm.transformers.AccessTransformer to enqueued access transformers
[17:49:17] [main/DEBUG] [FML/]: Enqueued coremod FMLCorePlugin
[17:49:17] [main/DEBUG] [FML/]: Instantiating coremod class FMLForgePlugin
@miuirussia
miuirussia / index.html
Created December 12, 2012 14:32
A CodePen by MIUI Russia. LOVE Text Effect - Scrambled text effect inspired by the award winning Science Fiction film LOVE http://uk.imdb.com/title/tt1541874/. Ported from a JavaScript jQuery plugin that @soulwire created on jsdo.it at the end of last year after we had just watched the film http://jsdo.it/soulwire/love-text-fx
<div id="container">
<div id="message">
<a id="animate" href="#">Transmit</a>
</div>
</div>
@miuirussia
miuirussia / index.html
Created December 12, 2012 14:31
A CodePen by MIUI Russia. LOVE Text Effect - Scrambled text effect inspired by the award winning Science Fiction film LOVE http://uk.imdb.com/title/tt1541874/. Ported from a JavaScript jQuery plugin that @soulwire created on jsdo.it at the end of last year after we had just watched the film http://jsdo.it/soulwire/love-text-fx
<div id="container">
<div id="message">
<a id="animate" href="#">Transmit</a>
</div>
</div>