Skip to content

Instantly share code, notes, and snippets.

View RosayGaspard's full-sized avatar
🪐
Travelling the universe.

Gaspard Rosay RosayGaspard

🪐
Travelling the universe.
View GitHub Profile
@RosayGaspard
RosayGaspard / solarized-dark.reg
Created April 10, 2018 08:55 — forked from noelbundick/LICENSE
Solarized Dark for Bash on Windows - Debian version
Windows Registry Editor Version 5.00
; Adapted from https://github.com/neilpa/cmd-colors-solarized/blob/master/solarized-dark.reg
; Registry file that maps the solarized palette to the 16 avaliable colors
; in a Windows command prompt. Note, hex values in the table are RGB but byte
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>
;
; Solarized color table from http://ethanschoonover.com/solarized.
;
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open user:password@example.com
# Connect
@RosayGaspard
RosayGaspard / objectToArray.php
Last active October 20, 2016 09:33
Convert an object into an array (by example json object)
<?php
/**
* Convert an object into an array (by example json object)
* @param an object
* @return an array
*/
function objectToArray($object) {
if(is_object($object)) {
$object = get_object_vars($object);
@RosayGaspard
RosayGaspard / CopyFilesThenMove.bat
Last active October 20, 2016 09:27
This is a (very) small script to copy files to another directory (like a shared one) and then move it in another directory
@echo off
REM This script will copy all CSV files of the given directory to another location
REM Then it moves files to another directory
xcopy C:\path\to\files\*.csv Z:\path\to\copied\files\ /y
move C:\path\to\files\*.csv C:\path\to\new\location\ /y