Skip to content

Instantly share code, notes, and snippets.

View cyrinux's full-sized avatar
💻
Developing cool stuff !

Cyril Levis cyrinux

💻
Developing cool stuff !
View GitHub Profile
@lowk3y
lowk3y / procedure
Created November 26, 2016 11:18
Add {Free}radius schema to OpenLDAP
1) Download http://open.rhx.it/phamm/schema/radius.schema
2) use this script to convert .schema to .ldif - https://gist.github.com/jaseg/8577024
3) add schema
# sudo ldapadd -Q -Y EXTERNAL -H ldapi:/// -f radius.ldif
4) verify
# sudo ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b \ cn=schema,cn=config dn
@maximbaz
maximbaz / Wire Desktop — Dark theme overrides.md
Last active January 17, 2019 15:52
Wire Desktop — Dark theme overrides

This only works if Wire was built with disabled ASAR packaging (see #335 and #147). Right now only Linux app is being built in this way, so if you are on Linux, you can proceed with the steps below, if not — adapt Gruntfile.js, set asar: false and compile Wire from sources.

Let's suppose Wire is installed in $INSTALLDIR, on my Linux it is /usr/lib/wire-desktop/.

  1. Create a new file $INSTALLDIR/css/dark-theme.css with the contents below.

  2. Open in text editor $INSTALLDIR/dist/main.js, and after line 321: case 'webview': add this:

    contents.on('dom-ready', () => {
    

contents.insertCSS(fs.readFileSync(path.join(APP_PATH, 'css', 'dark-theme.css'), 'utf8'))

@jalogisch
jalogisch / graylog2-docker-compose.yml
Created November 19, 2017 11:22 — forked from indigo423/graylog2-docker-compose.yml
Graylog2 Docker Compose file
version: '2'
networks:
graylog.net:
volumes:
graylog.data.elastic:
driver: "local"
graylog.data.mongo:
driver: "local"
@EntropyWorks
EntropyWorks / aptly-mirror.sh
Last active September 17, 2021 17:46
This is my script for mirroring a bunch of apt repos. This only touches the very basics of what (aptly)[http://www.aptly.info/] can do.
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Authored by Yazz D. Atlas <yazz.atlas@hp.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
@KashifSaadat
KashifSaadat / kube-reserved-resources-debugging.sh
Created March 15, 2019 16:40
Helpful debugging commands for Kube Reserved Resources & CGroups
# Query current usage for runtime, kubelet and pods
curl -s http://localhost:10255/stats/summary | jq .node.systemContainers
# Quick scan of the cgroup paths to see what does exist
ls -ld /sys/fs/cgroup/**/podruntime.slice
ls -ld /sys/fs/cgroup/**/system.slice
# Validate what cgroup a single process uses
cat /proc/$(pidof kubelet)/cgroup
@epixoip
epixoip / rtx2080.md
Last active February 23, 2022 17:54
Nvidia RTX 2080 FE Hashcat Benchmarks

Nvidia RTX 2080 FE Hashcat Benchmarks

Product: As there is currently no Linux driver, we had to use chick3nman's desktop (Windows 7)

Software: Hashcat v4.2.1, Nvidia driver 411.63

Accelerator: 1x Nvidia RTX 2080 Founders Edition

Notes

#!/bin/sh
log=/var/log/cpu_fix.log
printf "Log File - " >$log
while :; do
date >>$log
PLUGGED=$(acpi -a | grep on-line)
if [ ! -z "$PLUGGED" ]; then
echo setting values >>$log
# MSR
# PL1
#!/bin/bash
########################################################
#
# ## i3_maximize.sh ##
#
# Implements maximization of a window in i3.
# Swaps the focused container into a new workspace and
# and restores it when run again.
#
@StephenSorriaux
StephenSorriaux / install-kubernetes-archlinux.md
Created October 25, 2018 18:47
Install Kubernetes on bare-metal ArchLinux host

Installing Kubernetes on ArchLinux

Packages

pacman -S curl docker ebtables ethtool wget unzip

Also cfssl is needed but available on AUR, using pacaur

pacaur -S cfssl
@Arno0x
Arno0x / transformFile.py
Last active January 21, 2023 23:30
Performs multiple useful transformation on files
#!/usr/bin/python
# -*- coding: utf8 -*-
#
# Author: Arno0x0x, Twitter: @Arno0x0x
#
import argparse
from Crypto.Cipher import AES
import pyscrypt
from base64 import b64encode