Skip to content

Instantly share code, notes, and snippets.

View anlexN's full-sized avatar
😃
online

anlex N anlexN

😃
online
View GitHub Profile
@anlexN
anlexN / gist:23511810288bdb83a4d13fea596d145b
Created May 25, 2023 11:16 — forked from Shaltz/gist:1d65a07a0901a36fb7f1
HOW TO fix openLDAP checksum error on config files
(source : http://injustfiveminutes.com/category/openldap)
How to fix “ldif_read_file: checksum error”
Posted on October 28, 2014
15
Well, in spite of you did read a banner saying “# AUTO-GENERATED FILE – DO NOT EDIT!! Use ldapmodify.” you ignored it and made some manual modifications in any of the LDIF files in /etc/ldap/slapd.d/.
Don’t worry it happened to me too :) When you need to quickly setup an openLDAP server for development it is pretty much easier to tweak these files although the recommended way is to use ldapmodify tool. But if you change the LDIF files in cn=config manually, their contents and checksums won’t match, which is not fatal, but is annoying when using tools such as slapcat:
@anlexN
anlexN / nginx-tuning.md
Created April 5, 2021 03:14 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@anlexN
anlexN / mirrorlist.mingw32
Created September 11, 2020 02:56 — forked from elvisw/mirrorlist.mingw32
MSYS2国内源
##
## 32-bit Mingw-w64 repository mirrorlist
## Changed on 2014-11-15
##
##中国科学技术大学开源软件镜像
Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686
##北京理工大学镜像
Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/i686
##日本北陆先端科学技术大学院大学 sourceforge 镜像
Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/i686
@anlexN
anlexN / material-design-breakpoints.css
Created June 11, 2020 09:01 — forked from eyecatchup/material-design-breakpoints.css
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */
zypper install libopenssl-1_1-devel
./configure
make -s clean && make -sj4
cd ../run && ./john --test
apt install g++ make linux-headers-$(uname -r)
mount /dev/sr0 /media/cdrom
/media/cdrom/VBoxLinuxAdditions.run

#opensuse

zypper addrepo https://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/security.repo
zypper refresh
zypper install aircrack-ng

#if something is missing
zypper install ethtool pciutils usbutils iw
PS1='\n\[\e[32m\u\]\n\[\e[33m\H\]\n\[\e[34m\t\]\n\[\e[31m\w\]\n\e[95mBranch: $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")\]\n$ \[\e[0m\]'
@anlexN
anlexN / apsw.md
Last active February 27, 2020 12:59

apsw official website apsw github

localhost:~/apsw # ls
MANIFEST.in  PKG-INFO  __pycache__  checksums  doc  mingwsetup.bat  setup.py  sqlite3  src  tests.py  tools

localhost:~/apsw # ls sqlite3
INSTALL            Makefile.in   Replace.cs  config.guess  configure     install-sh  shell.c    sqlite3.h      sqlite3ext.h
Makefile.am Makefile.msc aclocal.m4 config.log configure.ac ltmain.sh sqlite3.1 sqlite3.pc.in tea