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
@s3rj1k
s3rj1k / HowTo
Last active March 6, 2024 12:12
Ubuntu 20.04.3 AutoInstall
# For recent versions of Ubuntu:
- https://www.pugetsystems.com/labs/hpc/ubuntu-22-04-server-autoinstall-iso/
# Docs:
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls
- https://wiki.ubuntu.com/FoundationsTeam/AutomatedServerInstalls/ConfigReference
- https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
- https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/53
# Download ISO Installer:
#!/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.
#
@virtadpt
virtadpt / gps.xhtml
Created November 18, 2019 23:51 — forked from Arttumiro/gps.xhtml
PAW-gps Mobile code+application
Originally from: https://raw.githubusercontent.com/systemik/pwnagotchi-bt-tether/master/GPS-via-PAW
Systemik made the original code and shaynemk on the pwnagotchi boards added timestamps, altitude, and satellites to the code
You can follow the original guide if you want, this one is just using a bit different code and is typed out a bit better
This is just the android part of the whole guide but the rest can be found here https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
And just so everyone knows, me (Arttumiro) didnt do anything coding related at all, i just changed up the guide a bit and made it easier to follow.
======================================================================================
Site of the app I use : http://paw-android.fun2code.de (It needs a lot of permissions but it will not do anything automatically)
Dont worry about incompatibility warnings, the gps code should still work even with that.
@goll
goll / README.md
Last active May 2, 2024 11:59
Docker nftables configuration for Debian 10
@dysinger
dysinger / nixos-encrypted-zfs.sh
Last active March 7, 2023 14:51
How I installed Encrypted ZFS root on NixOS
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3
@greenbrian
greenbrian / approle.sh
Created April 5, 2019 13:25
Vault CLI testing AppRole
#!/bin/bash
# start vault
VAULT_UI=true vault server -dev -dev-root-token-id=root -dev-listen-address=127.0.0.1:8200
# login as root - DO NOT DO THIS IN PRODUCTION
vault login root
# write some secrets
vault kv put secret/test color=blue number=eleventeen
@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
@adulau
adulau / ghidra-community.md
Last active November 11, 2023 13:16
Ghidra community - collection
@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
@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'))