Skip to content

Instantly share code, notes, and snippets.

View Conobi's full-sized avatar
🦆
duck

Conobi Conobi

🦆
duck
View GitHub Profile
@Conobi
Conobi / .clang-format
Last active March 6, 2023 15:56
Clang-format configuration file, based On Google's one, with some misc changes to look more like 42 School C norm.
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
@Conobi
Conobi / README.md
Last active December 8, 2021 14:28
42 projects - born2beroot monitoring.sh

Monitoring.sh - born2beroot (Debian flavour)

This script has only been tested on Debian environement. It uses jc and jq to parse the commands to JSON, and then select the proper data to output. You must install them before trying the script. Warning: ifconfig has been configured to use the Debian 5.10 path. It would not work on Ubuntu or others distributions.

/var/android/roms/havoc3.2/out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/current-apicheck/srcjars/android/Manifest.java:3452: error: Added field android.Manifest.perm
ission.HARDWARE_ABSTRACTION_ACCESS [AddedField]
/var/android/roms/havoc3.2/out/soong/.intermediates/frameworks/base/api-stubs-docs/android_common/current-apicheck/srcjars/android/Manifest.java:3453: error: Added field android.Manife[0/321]
ission.MANAGE_LIVEDISPLAY [AddedField]
/var/android/roms/havoc3.2/frameworks/base/media/java/android/media/AudioManager.java:1019: error: Added method android.media.AudioManager.setStreamMaxVolume(int,int) [AddedMethod]
/var/android/roms/havoc3.2/frameworks/base/media/java/android/media/audiofx/DiracSound.java:6: error: Added class android.media.audiofx.DiracSound [AddedClass]
/var/android/roms/havoc3.2/frameworks/base/core/java/android/provider/Settings.java:16167: error: Added field android.provider.Settings.Global.ANIMATION_CONTROLS_DURATION [AddedField]
/var/android/roms/havoc3.2/f
[ 0% 40/26628] AAPT2 link /var/android/roms/havoc3.2/out/target/product/X00Q/obj/APPS/Settings_intermediates/package-res.apk
FAILED: /var/android/roms/havoc3.2/out/target/product/X00Q/obj/APPS/Settings_intermediates/package-res.apk /var/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermediates/aapt2.s
rcjar /var/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermediates/extra_packages /var/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermediates/src/R.stamp /va$
/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermediates/proguard_options
/bin/bash /var/android/roms/havoc3.2/out/target/product/X00Q/obj/APPS/Settings_intermediates/package-res.apk.rsp
/var/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermediates/manifest/AndroidManifest.xml:3809: error: resource android:string/live_display_title not found.
/var/android/roms/havoc3.2/out/target/common/obj/APPS/Settings_intermedi
var ballMinVel = 15;
var ballMaxVel = 150;
var ballMaxFactorVel = 2;
class Ball {
constructor(x, y) {
this.ball = game.add.sprite(x, y, 'ball');
game.physics.enable(this.ball);

[IN]\nIntroduction :\n \nCe cours analyse les différentes crises qui ont affecté l’économie mondiale ces dernières décennies : celle de 1929, celle de 1974 ou plus récemment celle de 2008. Ces grandes crises ont à chaque fois touché l’ensemble des agents économiques : les entreprises (entraînant des faillites), les ménages (réduisant leur pouvoir d’achat ou faisant croitre le chômage), les banques (les rendant plus réticentes à financer les projets), les États et les finances publiques.\n \nDans un monde où les économies nationales sont de plus en plus interconnectées et liées à la finance internationale, les probabilités d’étendue d’une crise à l’échelle mondiale sont immenses. Si on analyse les crises qui se sont déroulées depuis le milieu des années 1980, on se rend compte que ce sont surtout les crises bancaires et financières qui ont tendance à se multiplier. Ces crises s’expliquent en particulier par un phénomène qui s’appelle la théorie du « cycle du crédit », que l’on illustre

KeyPress event, serial 38, synthetic NO, window 0x6600001,
root 0x2c5, subw 0x0, time 30006425, (149,-306), root:(2069,278),
state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 38, synthetic NO, window 0x6600001,
mode NotifyGrab, detail NotifyAncestor
sudo apt update;
sudo apt install vino miniupnpc;
upnpc -a `ifconfig wlan0 | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 5900 5900 TCP;
upnpc -a `ifconfig enp3s0 | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 5900 5900 TCP;
upnpc -a `ifconfig wlan0 | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 5900 5900 UDP;
upnpc -a `ifconfig enp3s0 | grep "inet addr" | cut -d : -f 2 | cut -d " " -f 1` 5900 5900 UDP;
DISPLAY=:0 /usr/lib/vino/vino-server &&
@Conobi
Conobi / [1]install.md
Last active January 11, 2023 02:18
Oh my ZSH on Ubuntu w/ Neofetch

Avant on fait un petit

sudo apt install zsh neofetch netcat 

On installe Oh my zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

On met zsh comme interprétateur par défaut

title: Une préambule
desc: Préambulons un peu ce blog.
author: Kiyoshi
cover: assets/img/articles/preambule.jpg
---
# Yo.
Cet article signe le début de ce blog, qui est un petit blog personnel, un carnet de voyages, une documentation, un fourre-tout à textes ou tutoriels. Comme tout, il me semble important d'annoter un petit peu ce que peut être ce blog.
## Ce que ce blog peut contenir
- **Rien** : Les probabilités que ce blog soit abandonné à la fin de l'écriture de cet article sont assez élevées, du coup je préfère prévenir.