Skip to content

Instantly share code, notes, and snippets.

@erral
erral / gist:3083720
Last active September 14, 2023 12:52
python eta garapen ingurunearen prestaketa

Hauexek dira gure garapen ingurunea instalatzeko behar ditugunak (Ubuntu 23.04 bertsioan probatuta):

SSH

Exekutatu komando hauek:

sudo apt-get install openssh-client openssh-server
ssh-keygen
@warenhaus
warenhaus / qtranslate_hooks.php
Last active May 25, 2017 20:21
qtranslate with the new Visual editor in Wordpress 3.9
<?php // encoding: utf-8
/*Copyright 2008Qian Qin(email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@pigeonflight
pigeonflight / README.rst
Last active April 25, 2020 18:41
Example of using requirejs with a jquery plugin and Plone

This is an example of using a jquery plugin (in this case semantic ui) via requirejs WITHOUT needing to rely on the plone bundling infrastructure.

Update: Dec 16, 2015

http://github.com/thet pointed out an alternative approach which reduces the number of files used by getting rid of main.js and putting all the code in app.js like this:

require.config({
    "baseUrl": "./",
    "paths": {
@viktorpetryk
viktorpetryk / mailhog-install.md
Last active January 27, 2023 09:08
MailHog installation on Ubuntu

Install & Configure MailHog

  1. Download and make it executable
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
sudo cp MailHog_linux_amd64 /usr/local/bin/mailhog
sudo chmod +x /usr/local/bin/mailhog
  1. Make MailHog as a service
@parreitu
parreitu / NextCloud-RaspberryPI-etxean.txt
Last active November 17, 2021 19:34
Nextcloud RaspberryPI batean: norberak bere etxetik kudeatu ahal izango duen hodei propioa
HELBURUA
=========
Dokumentu honetan nire etxean eta RaspberryPI bat erabiliz, Nextcloud instantzia propioa sortzeko erabili ditudan pausoak gainetik azaltzera noa (ez da gida zehatz bat). Norbait animatzen da, jakin dezala honek niri behintzat funtzionatu didala.
Erabiltzen ari naizen RaspberryPI-ak urte batzuk ditu, RaspberryPI2B modeloa da: https://www.raspberrypi.org/products/raspberry-pi-2-model-b/
Dropbox ezagutzen duenarentzat, Nextcloud-en erabilera oso antzerakoa dela konturatuko da. Sortuko dugun nextcloud instantzia honetan guk nahi ditugun erabiltzaileak sortu ahal izango ditugu, eta erabiltzaile bakoitzak bere txokoa izango du, non:
- karpetak sortu ahal izango ditu bere hodei propioan.
- Ezabatzen diren dokumentuak zakarontzira joango direnez, erabiltzaile bakoitzak aukera izango du bere kabuz dokumentuak zakarontzitik berreskuratzeko.
@cdw9
cdw9 / Products.CMFPlone.browser.templates.description.pt
Last active November 14, 2019 14:55
Plone 5.2 - HTML Dublin Core Behavior for Plone. Meant to replace plone.dublincore. Honors HTML filtering, and saves a plain text version of the value to the default Title and Description, so you don't have to override dozens of templates in your site
<div class="documentDescription description"
tal:define="html_descrip context/html_description | nothing;
plain_descrip context/Description"
tal:condition="plain_descrip">
<tal:html tal:condition="html_descrip"
tal:content="structure html_descrip">
Description
</tal:html>
<tal:plain tal:condition="not: html_descrip"
tal:content="plain_descrip">
@ZiTAL
ZiTAL / elhuyar.py
Last active January 11, 2024 07:55
python: elhuyar-i hitzak itzultzeko eskatzeko script-a
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import requests
import re
from lxml import html
def printError(search):
print("Errorea gertatu da, ziur aski sartu duzun hitza ez da hiztegian agertzen")