Skip to content

Instantly share code, notes, and snippets.

View t0xicCode's full-sized avatar
:shipit:

Xavier L. t0xicCode

:shipit:
View GitHub Profile
@t0xicCode
t0xicCode / install-zellij.sh
Created August 26, 2023 17:08
Zellij Install Script
#!/bin/sh
# Copyright (c) 2023 MagnaX Software
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
<?php
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Mapping\ClassMetadata as MappingClassMetadata;
use Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder;
use Doctrine\ORM\Query;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\ORM\Tools\Setup;
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
use Doctrine\Persistence\Mapping\ClassMetadata;
#!/bin/sh
# https://bit.ly/3evQLBS
export DEBIAN_FRONTEND=noninteractive
if [ ! `which gnupg` ]; then
apt install -y gnupg
fi
@t0xicCode
t0xicCode / install-node-exporter.sh
Last active March 30, 2022 20:26
Script to install, enable, and start node-exporter
#!/bin/sh
# Copyright (c) 2020 MagnaX Software
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@t0xicCode
t0xicCode / keybase.md
Last active May 14, 2020 05:10
Proof tying my github profile with my keybase profile

Keybase proof

I hereby claim:

  • I am t0xicCode on github.
  • I am t0xiccode (https://keybase.io/t0xiccode) on keybase.
  • I have a public key whose fingerprint is 92DB 37EA 28A8 2CEE FE60 F82C 5D99 0A6B 6D88 9039

To claim this, I am signing this object:

Objective: {what's the purpose of the test}

Environment

  • {codebase and database}

Pre-conditions

  • {environment setup}
  • {any tests that need to be run first}
@t0xicCode
t0xicCode / mediahint.js
Created July 25, 2013 17:36 — forked from raul/mediahint.js
Mediahint compatible PAC file
function FindProxyForURL(url, host){
var myip = myIpAddress();
var ipbits = myip.split(".");
var myseg = parseInt(ipbits[3]);
if(myseg == Math.floor(myseg/2)*2){
proxy = 'PROXY 165.225.131.153:80; PROXY 165.225.130.193:80';
} else {
proxy = 'PROXY 165.225.130.193:80; PROXY 165.225.131.153:80';
}
if((host == 'localhost')||(shExpMatch(host, 'localhost.*'))||(shExpMatch(host, '*.local'))||(shExpMatch(host, '*.lan'))||(host == '127.0.0.1')){
@t0xicCode
t0xicCode / mkv2mp4.sh
Created August 23, 2012 07:49
Tool to convert mkv files into mp4 files
#!/bin/sh
# Initial code by thewinchester
# Modified by CanuckSkier
# Modified by xav0989
# SEE http://superuser.com/questions/275193/mkv-to-mp4-transcoding-script-issues/36649
#Close stdin - avoid accidental keypresses causing problems
exec 0>&-
@t0xicCode
t0xicCode / README.md
Created August 9, 2012 17:37
Build and display an animated text-based progress bar in python

This started out as a fork of the progress bar class which I first hosted on ActiveState Code.

It builds a text progress bar and displays it with the draw() method.

The methods are showcased below:

from progressBar import progressBar

# Initiates the progessBar
prog = progressBar(maxValue = 50)