Skip to content

Instantly share code, notes, and snippets.

DILL DILL44

Block or report user

Report or block DILL44

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View config vim
set nocp
syn on
set syntax =on
filetype indent plugin on
set incsearch
set cursorline
set showmatch
@DILL44
DILL44 / decompresition.sh
Last active Nov 30, 2015
mes logiciel linux
View decompresition.sh
###############sytem
sudo apt-get install vim htop git
###############hardware
sudo apt-get install fritzing arduino kicad
###############admin
sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
wget -q -O - http://liveusb.info/multisystem/depot/multisystem.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox testdisk multisystem gsmartcontrol netdiscover
sudo adduser "$USER" adm
@DILL44
DILL44 / node_users_realation_drupal
Created Nov 29, 2014
sql requests for show relation between nodes (content) and users
View node_users_realation_drupal
comming bash
SELECT `users`.`name` , `users`.`mail` , `role`.`name`
FROM `users` , `role` , `users_roles`
WHERE `users`.`uid` = `users_roles`.`uid`
AND `role`.`rid` = `users_roles`.`rid`
LIMIT 0 , 30
SELECT `node`.`nid` , `node`.`type` , `node`.`title` , `node`.`status` , `users`.`uid` , `users`.`name` , `users`.`mail`
FROM `node` , `users`
@DILL44
DILL44 / gist:7e10e45fc4e17fecb513
Last active Aug 29, 2015
install node_export, export node and delete node_export #comming soon with importing node
View gist:7e10e45fc4e17fecb513
#!/bin/bash
# $1 path to the first platform
# $2 path to the segond platform
# $3 list of the node id to export
cd $1
drush cc drush
drush dl node_export_feeds, node_export_features, node_export_dependency, node_export_relation, node_export
drush pm-enable node_export
View install debian server
#!/bin/bash
sudo apt-get install apache2 monit mysql-client mysql-server htop php5 php5-curl php5-mysql portsentry postfix php-apc rkhunter vim
#for drupal
sudo apt-get install drush
#for owncloud
sudo apt-get install php5-json php-xml-serializer zip php5-gd php5-sqlite curl libcurl3 libcurl3-dev bzip2
wget http://owncloud.org/releases/owncloud-4.0.0.tar.bz2
View guide_mecareprap
longueur=5;
largeur=13;
hauteur=13;
diametre_tringle=4;
rayon_ecrou=4.5;
hauteur_ecrou=3.5;
rotate(a=[0,-90,0]) {
difference(){
difference() {
View photo_mail
#!/bin/bash
mail=''
choix='4'
retardataire=0
nom_photo='photo'
sujet='votre photo'
corp='vote photo grace au programme <a href="https://gist.github.com/DILL44/bb18e0f028cb3c8c0c41">photo mail</a>'
clear
ligne_separation(){
View ventilateur.ino
int _ABVAR_1_v1 = 0 ;
int _ABVAR_2_v2 = 0 ;
int _ABVAR_3_v3 = 0 ;
void setup()
{
pinMode( 10, INPUT);
pinMode( 9, INPUT);
pinMode( 11, INPUT);
Serial.begin(9600);
View fablabdoc.dtd
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!ELEMENT projet (name, description, Warning*, illustrations?, authors, fablab?, licence, attachement+, materials?, tools?, skills?, steps?, creationDate, lastModification, tags?)>
<!----------------------------- base elements ----------------------------->
<!ELEMENT name (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT media (image|video)>
<!ELEMENT image EMPTY>
View backupApt
#!/bin/bash
# recupère les programmes installés dans les logs de apt
configFile=$1
sudo gzip -Nd /var/log/apt/history.log.*
file=`egrep 'apt-get install' /var/log/apt/history.log*`
# transforme en une commade d'install
file=`echo $file | sed 's/\/var\/log\/apt\/history.log[.]\?[0-9]*:Commandline: apt-get install//g'`
You can’t perform that action at this time.