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
*-------------------------------------------------------------------------- | |
* Model generated by Motega software: | |
* | |
* Modeling Of Tubes Employing Genetic Algorithms | |
* | |
* Models contain 1G resistors from all nodes to earth in order to avoid | |
* floating nodes. Triode and tetrode/pentode models contain a diode for | |
* simulating grid current. | |
* | |
* Non-commercial use is permitted, but at your own risk... This model |
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 | |
function human_filesize($bytes, $decimals = 1) { | |
$sz = 'BKMGTP'; | |
$factor = floor((strlen($bytes) - 1) / 3); | |
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; | |
} | |
$folder = "/home/webs/montpres/wp-content/uploads/molt_psp_familias_completas"; | |
$genlist = "/home/webs/montpres/wp-content/pdf_generados.txt"; |
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
/etc/polkit-1/rules.d/10-udisks2.rules | |
// See the polkit(8) man page for more information | |
// about configuring polkit. | |
// Allow udisks2 to mount devices without authentication | |
// for users in the "wheel" group. | |
polkit.addRule(function(action, subject) { | |
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || | |
action.id == "org.freedesktop.udisks2.filesystem-mount") && |
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 python | |
import time | |
import threading | |
import logging | |
try: | |
import tkinter as tk # Python 3.x | |
import tkinter.scrolledtext as ScrolledText | |
except ImportError: | |
import Tkinter as tk # Python 2.x | |
import ScrolledText |
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
# MAS USADOS POR MI: | |
# PROBLEMAS CON grub2win y PC con EFI: no va a andar con loopback loop, vocar en subdirectorio: | |
# c:\ubuntustudio\{casper....} | |
menuentry 'Ubuntu Studio' { | |
set root='(hd1,gpt3)' | |
linux /ubuntustudio/casper/vmlinuz boot=casper ignore_uuid file=/pressed/ubuntustudio.seed live-media-path=/ubuntustudio/casper ignore_uuid locale=es_AR.UTF-8 mitigations=off | |
initrd /ubuntustudio/casper/initrd | |
} | |
# ELIVE STABLE |
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 | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
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 | |
# http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast#answer-201018 | |
# 1. Run byzanz-record-window 30 -c output.gif | |
# 2. Go to the window (alt-tab) you want to capture. Click on it. | |
# 3. Wait 10 seconds (hard-coded in $DELAY), in which you prepare for recording. | |
# 4. After the beep (defined in the beep function), byzanz will start. | |
# 5. After 30 seconds (that's the meaning of 30 in step 1), byzanz ends. A beep will be broadcast again. |
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
# $1 is the first argument | |
# remove result.txt | |
#rm output/result.txt | |
fname=`echo "$1" | awk -F "/" '{print $(NF)}'` | |
# convert the pdf to a group of tiffs | |
if [ ! -e extracted_tz_parliament/$fname.txt ]; | |
then |
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
*/","Kine", | |
"/* Buscar duplicados */ | |
/* que no tienen bill (POR LINK)*/ | |
SELECT | |
CSSPK_BILL_AFFILIATE_CORE.matricula, | |
CSSPK_BILL_PAY.methodOfPayment, | |
bill , imputationDate as FechaImputacion, | |
CAST(GROUP_CONCAT(DISTINCT CSSPK_BILL_PAY.id) AS CHAR) AS PagosID, |
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
# EN GRUB: desactivar mitigaciones si no me interesan (+perf. Intel) | |
noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off mitigations=off | |
pacman -Rsc plymouth | |
pacman -Rsc mlocate | |
pacman -Rsc ntp | |
pacman -Rsc tlp | |
pacman -Rsc accountsservice | |
systemctl mask updatedb.service |