Skip to content

Instantly share code, notes, and snippets.

View Eywek's full-sized avatar

Valentin Touffet Eywek

View GitHub Profile
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@freretuc
freretuc / gist:3346696
Created August 14, 2012 05:50
Liste Gares SNCF France + codes gares
"frxab";"50.102";"1.82425";"Abbeville"
"frmlw";"49.0037";"2.57089";"Aéroport CDG 2 TGV"
"frxag";"43.3174";"3.46613";"Agde"
"fragf";"44.2084";"0.620312";"Agen"
"frais";"49.9284";"2.20058";"Ailly Sur Somme"
"frqai";"45.5543";"6.6489";"Aime la Plagne"
"frqxb";"43.5232";"5.44412";"Aix en Provence"
"fraie";"43.4553";"5.31723";"Aix en Provence TGV"
"frxai";"45.6879";"5.90924";"Aix les Bains le Revard"
"frale";"45.7861";"5.98222";"Albens"
@blackswansolutions
blackswansolutions / gist:6361906
Last active December 13, 2017 19:38
PHP: Xenforo Session
<?php
class Session {
#Xenforo if logged in function
function isOnline(){
$session = new XenForo_Session();
if (!$session->sessionExists())
{//when user info and sessions are needed
XenForo_Session::startPublicSession();
@lambda2
lambda2 / ft_printf_test.c
Last active November 26, 2017 16:35
Test file for ft_printf
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aaubin <aaubin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/12/16 10:10:21 by aaubin #+# #+# */
/* Updated: 2013/12/16 10:10:34 by aaubin ### ########.fr */
/* */
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 27, 2024 13:28
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@grafikchaos
grafikchaos / Install_IonCube_Loaders.md
Last active November 29, 2023 07:49
Install IonCube on Linux

Overview

I always forget the steps, but it's pretty simple:

Steps:

  • Download the IonCube Loaders
  • Check your PHP version to find which IonCube loader you should use
  • Check your PHP configuration for the extension_dir
  • Copy the IonCube Loader into the PHP extension directory
@jagrosh
jagrosh / WebhookTutorial.md
Last active December 4, 2023 20:28
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
@aaronjanse
aaronjanse / fix.sh
Created August 21, 2017 14:37
Magical command to make gpg work with YubiKey smartcard
killall gpg-agent && gpg-agent --daemon --use-standard-socket --pinentry-program /usr/local/bin/pinentry
@molcik
molcik / free-photoshop.md
Created May 18, 2018 08:39
Modify Photoshop to never ending trial

How Does It Work

All you have to do, to extend your trial period, is change number in TrialKey element in application.xml. This file is located in /Library/Application Support/Adobe/Adobe Photoshop/AMT. You can navigate there with this command:

cd /Library/Application\ Support/Adobe/Adobe\ Photoshop\ */AMT

Then you have to open the file and edit it. You can use just TextEdit app.

open -a TextEdit application.xml
@matthax
matthax / ioredis-duplex-stream.js
Created December 6, 2018 22:46
IORedis Duplex Stream Example
/**
* MIT License
Copyright (c) 2018 Matthew D. Bark
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