This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$isAjaxUpdate=Yii::app()->request->isAjaxRequest; | |
if(!$isAjaxUpdate||Yii::app()->request->getParam('ajax')==='mygridid') | |
$this->widget('zii.widgets.grid.CGridView', | |
array( | |
'id'=>'mygridid', | |
'dataProvider' => new CArrayDataProvider( | |
array( | |
array( | |
'id'=>1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xv | |
### Country list | |
# CHANGE WITH YOUR COUNTRIES | |
COUNTRIES="europe/france/guadeloupe europe/france/guyane europe/france/mayotte europe/france/martinique europe/france/reunion europe/france" | |
# SMALL SUBSET FOR TESTING: | |
COUNTRIES="europe/france/guyane europe/france/mayotte" | |
NOMINATIM="/var/www/Nominatim" | |
cd $NOMINATIM/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
' uncomment the line below if you're using computer with a retina display | |
' skinparam dpi 300 | |
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
' we use bold for primary key | |
' green color for unique | |
' and underscore for not_null | |
!define primary_key(x) <b>x</b> | |
!define unique(x) <color:green>x</color> | |
!define not_null(x) <u>x</u> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/perl | |
# SCRIPT TO CONVERT TEXT LOG TO PCAP FILE | |
# READS DATES FROM LOG FILE | |
# WHEN READING FROM PIPE (UNTESTED) WITHOUT DATES, | |
# THE CURRENT TIMESTAMP IS USED. | |
# | |
# Potential parameters to the script: | |
# Parameter ending in ".log" is the log input file | |
# Parameter ending in ".pcap" is the log output file | |
# Digit from 0 to 7 is the log index. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo OFF | |
REM | |
REM WRAPPER FOR WINDOWS INCLUDING THE PYTHON PATH FROM KICAD ITSELF | |
REM | |
REM GIT: [email protected]:df5b6a1462d3052a42dbaa0e35a5b952.git | |
REM URL: https://gist.github.com/df5b6a1462d3052a42dbaa0e35a5b952 | |
REM | |
PATH="c:\Program Files\KiCad\bin";%PATH% | |
echo %~dp0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# multipcap.pl | |
# License MIT + Any article (blog, site, documentation, etc) | |
# should link back to this page. | |
# Link : https://gist.github.com/mdeweerd/4bf3375b2ec56b5492a7a4695e19e92e | |
use strict; | |
#use File::PCAP::Reader; # Needed to read the pcap file | |
#use File::PCAP::Writer; # Needed to write the pcap file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.21/bin/python | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/python | |
#!/usr/bin/env python3 | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/FreeCAD | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/FreeCADCmd | |
#!/usr/bin/freecad | |
#!/usr/bin/python | |
# (Options above for reminder, easy exchange of lines to adapt to local platform). | |
# /!\ Launch this script using the python provided/used by FreeCAD | |
# (Select/add the appropriate line above) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# | |
# Generate Interactive BOM2HTML | |
# | |
# Only argument is .kicad_brd file | |
# | |
# Options can be set in 'bomhtml.conf' located in the directory of DESIGN.kicad_brd | |
# Can set KICAD_PYTHON in environment to change path. | |
KICAD_PYTHON=${KICAD_PYTHON:=/cygdrive/c/Program\ Files/KiCad/bin/python} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<!-- <link rel="stylesheet" href="css/foundation.css" /> --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.3/css/foundation.min.css" integrity="sha512-2meDMHyoDRV8O0gr5Diq32ch+6QqI9Af9Km4eFwgxZg356CbUI4S30C3zuUetkNAN4Bn+17y9OgxoQ3HnQ648w==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setupMonit.conf |
OlderNewer