Skip to content

Instantly share code, notes, and snippets.

View agentcobra's full-sized avatar
🇫🇷

agentcobra agentcobra

🇫🇷
View GitHub Profile
@agentcobra
agentcobra / install_palworld.sh
Last active January 21, 2024 03:47
Install PalworlServer on debian
#!/usr/bin/env bash
# Définir le nom d'utilisateur par défaut
default_user="steam"
# Utiliser le premier argument comme nom d'utilisateur, ou la valeur par défaut si absent
user=${1:-$default_user}
# Installation de SteamCMD
useradd -m -s /bin/bash $user
@agentcobra
agentcobra / ipam-tools.md
Created July 31, 2023 12:06 — forked from regnauld/ipam-tools.md
Overview of IPAM/DCIM tools - July 2016
<?php
function getUserInfos(
$access_token,
$jam = [
'app_id' => '',
'redirect_url' => '',
'api_secret' => ''
]
) {
$response = json_decode(file_get_contents(
@agentcobra
agentcobra / pager.sh
Created March 30, 2020 15:17
Permet de déplacer des fichiers en créant des sous-dossiers contenant n fichiers
n=100;
cd $1
p=1;
i=0;
IFS=$'\n';
for file in $(ls)
do
let i++;
currentDir="./page_"$p
@agentcobra
agentcobra / home.php
Created June 12, 2018 04:47
connexion snippet
<?php
if ($_POST) {
if($_POST['uni'] != $_SERVER['HTTP_ORIGIN'])
{
/**
* Redirect with POST data.
*
* @param string $url URL.
* @param array $post_data POST data. Example: array('foo' => 'var', 'id' => 123)
body .paper {
position: relative;
margin: auto;
background-color: #242c1a;
background-image: radial-gradient(circle farthest-corner at 126% 36%, rgba(0,0,0,0) 65%, #000206 81%),radial-gradient(circle farthest-corner at 47% 50%, #5d818a 9%, #062931 76%);
box-shadow: 0 0 10em 8em #251e0b,0 0 5em 20em #473c1c,0 0 14em 34em #2e2613,0 0 0 40em #261e0f;
overflow: hidden;
box-sizing: content-box;
width: 650em;
}

Keybase proof

I hereby claim:

  • I am agentcobra on github.
  • I am agentcobra (https://keybase.io/agentcobra) on keybase.
  • I have a public key whose fingerprint is AF63 8770 4523 4B1A 7DEC EFAA 3710 4DA5 6159 1ECA

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
@agentcobra
agentcobra / mixTest.ino
Last active August 29, 2015 14:17
ThiBarduino
#include <LiquidCrystal.h>
// select the pins used on the LCD panel
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
// define some values used by the panel and buttons
int lcd_key = 0;
int adc_key_in = 0;
#define btnSELECT 4
// read the buttons
--[[
$Id$
location: C:\Program Files\VideoLAN\VLC\lua\sd\freebox.lua
Copyright © 2010 VideoLAN and AUTHORS
Authors: Fabio Ritrovato <sephiroth87 at videolan dot org>
This program is free software; you can redistribute it and/or modify