This file contains hidden or 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
[IButton, GrowVisiblePolygroups, "Grow Visible Polygroups Once and Regroup", // Get the active document and initialize some variables [VarSet, doc, IGet, "ZBrush Document"], | |
[VarSet, pgCount, 0], | |
// Get the number of visible polygroups | |
[If, [IGet, "Tool:SubTool:Visible"] > 1, | |
[Loop, [IGet, "Tool:Polygroups Grp"], | |
[If, [IGet, "Tool:Polygroups:" + pgCount + ":Visible"], | |
// Grow the visibility of the current polygroup | |
[IPress, "Tool:Polygroups:Group Visible"], | |
[IPress, "Tool:Polygroups:Group Visible"], |
This file contains hidden or 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
protected static string GetEntityInChargeJSONRepresentation(EntityInCharge entityInCharge) | |
{ | |
if (entityInCharge == null) return "null"; | |
return JsonConvert.SerializeObject( | |
entityInCharge, | |
Formatting.None, | |
new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }); | |
} |
This file contains hidden or 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
'LINQ to Entities does not recognize the method | |
'System.Data.Entity.DbSet`1[Unctad.eRegulations.Library.Models.Country.Media] Set[Media]()' | |
method, and this method cannot be translated into a store expression. |
This file contains hidden or 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
[root@DARKSTART skycoin]# ./skycoin | |
abs path: /root/skycoin/src/gui/static | |
runtime.Caller= /home/travis/gopath/src/github.com/skycoin/skycoin/src/skycoin/config.go | |
Filepath Directory= src/gui/static | |
Filepath Absolute Directory= /root/skycoin/src/gui/static | |
Working Directory= /root/skycoin | |
Runtime Filename= /home/travis/gopath/src/github.com/skycoin/skycoin/src/skycoin/config.go | |
Runtime Directory= /home/travis/gopath/src/github.com/skycoin/skycoin/src/skycoin | |
ResolveResourceDirectory: static resource dir= /root/skycoin/src/gui/static | |
[2019-05-29T16:06:54-04:00] INFO [main]: App version: 0.25.0 |
This file contains hidden or 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
FROM microsoft/dotnet:sdk AS build-env | |
# 👆 con la imagen de la SDK | |
# el FROM debe ser la primera linea siempre | |
# Exponemos el puerto 80. Pero para que funcione hay que especificarle | |
# inyectándole la dependencia con el parámetro «.UseUrls(portnumber)» | |
# public static IWebHostBuilder CreateWebHostBuilder(string[] args) => | |
# WebHost.CreateDefaultBuilder(args) | |
# .UseUrls("http://0.0.0.0:80") // <-- añade esta cláusula al Program.cs | |
# .UseStartup<Startup>(); |
This file contains hidden or 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
await Task.Run(delegate | |
{ | |
// así que conecta la base de datos como mismo se conectó la otra | |
EtecsaContext db = new EtecsaContext() { Fichero = etecsa.Fichero }; | |
// por cada móvil que devuelva la consulta, colócalo en la tabla | |
foreach (var movil in db.Movil.Where(m => m.Name.Contains(que))) | |
Resultado(movil); | |
}); |
This file contains hidden or 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
[Route(@"api/")] | |
[Produces(@"application/json")] | |
public class ApiController : Controller | |
{ | |
// inicializa la base de datos | |
public EtecsaContext etecsa { get; set; } = new EtecsaContext() { Fichero=@"D:\db\Etecsa.db" }; | |
// note como ActionResult<Movil> permite retornar un móvil o un StatucCode | |
[HttpGet("query/{numero}")] |
This file contains hidden or 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/sh | |
mkdir -p 'Windows Defender' | |
cd 'Windows Defender' | |
mv mpam-fe-exe mpm-fe.exe.old | |
wget -O mpam-fe.exe -c 'http://go.microsoft.com/fwlink/?LinkID=121721&arch=x64' && rm mpm-fe.exe.old || mv mpm-fe.exe.old mpm-fe.exe |
This file contains hidden or 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
# a faebook y compañía solo se entre después de las 4pm | |
acl sonsera url_regex -i "/etc/squid/sonsera.list" | |
acl horario time MTWHF M-F 09:00-16:00 | |
deny_info ERR_NO_FACEBOOK sonsera horario | |
http_access deny CONNECT sonsera horario | |
http_access deny sonsera horario |
This file contains hidden or 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 | |
# que longitud en de cifrado | |
longitud=2048 | |
# la cantidad de días que tarda del CA en CAducar | |
# en este caso, usamos 10 años | |
caudocidad=3650 |
NewerOlder