Skip to content

Instantly share code, notes, and snippets.

View alcalyn's full-sized avatar

Julien Maulny alcalyn

View GitHub Profile
@alcalyn
alcalyn / logs.txt
Created April 4, 2018 15:25
SSH blocking
$ ssh HOST -vvv
OpenSSH_7.5p1 Ubuntu-10ubuntu0.1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "HOST" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to HOST [HOST_IP] port 22.
debug1: Connection established.
debug1: identity file /home/ju/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory

Keybase proof

I hereby claim:

  • I am alcalyn on github.
  • I am alcalyn (https://keybase.io/alcalyn) on keybase.
  • I have a public key ASCy84ZZcMIlJuMwpCCeXKrX5iiiZHsBuo0d67K05irSpQo

To claim this, I am signing this object:

@alcalyn
alcalyn / .env
Created August 31, 2017 13:11
drop twitter test
HASHTAG=#droprobot
MASTER_API=http://0.0.0.0:8480/index-dev.php/api/
MASTER_API_KEY=ChangeMeImFamous
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=
CONSUMER_KEY=
CONSUMER_SECRET=
@alcalyn
alcalyn / commit.sh
Created August 30, 2017 14:41
Commit with a defined date
GIT_COMMITTER_DATE="2017/11/09 14:05:00" git commit -m "commit message" --date="2017/11/09 14:05:00"
@alcalyn
alcalyn / bad.js
Created September 26, 2016 09:46
setInterval(function () {
$.ajax({
type: 'get',
url: 'api/chat/messages',
success: displayNewMessages
});
}, 1000);
@alcalyn
alcalyn / .gitconfig
Last active July 10, 2018 11:29
gitconfig
[user]
name = Julien Maulny
email = julien.maulny@protonmail.com
[alias]
st = status
co = checkout
ci = commit
br = branch
[core]
excludesfile = ~/.global_gitignore
@alcalyn
alcalyn / list-routes.php
Last active January 13, 2022 08:37
Dump all Silex routes
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
use Silex\Application;
/**
@alcalyn
alcalyn / data.csv
Last active September 7, 2015 13:15 — forked from gencay/data.csv
State Under 5 Years 5 to 13 Years 14 to 17 Years 18 to 24 Years 25 to 44 Years 45 to 64 Years 65 Years and Over
AL 310504 552339 259034 450818 1231572 1215966 641667
AK 52083 85640 42153 74257 198724 183159 50277
AZ 515910 828669 362642 601943 1804762 1523681 862573
AR 202070 343207 157204 264160 754420 727124 407205
CA 2704659 4499890 2159981 3853788 10604510 8819342 4114496
CO 358280 587154 261701 466194 1464939 1290094 511094
CT 211637 403658 196918 325110 916955 968967 478007
@alcalyn
alcalyn / UTF8.js
Last active August 29, 2015 14:16
Utility class about UTF8 string proccessing : get utf8 string length, convert utf8 string to byte array, convert bytes array to utf8 string
/**
* Utility class about UTF8 string proccessing
*
* @type UTF8
*/
var UTF8 =
{
/**
* Returns length in bytes of an utf8 string
*
@alcalyn
alcalyn / svn.bat
Created February 23, 2015 10:49
Create an alias for svn. (First rename svn.exe to svn-core.exe)
@echo off
if "%1"=="nympho" (
svn-core.exe info
goto :end
)
svn-core.exe %*
:end