Skip to content

Instantly share code, notes, and snippets.

View chponte's full-sized avatar

Christian Ponte Fernández chponte

  • NetApp
  • Cork, Ireland
View GitHub Profile
@chponte
chponte / launcher.vbs
Last active March 4, 2019 18:24
WSL Shortcut
' Simple command-line help.
select case WScript.Arguments(0)
case "-?", "/?", "-h", "--help"
WScript.echo "Usage: runHidden executable [...]" & vbNewLine & vbNewLine & "Runs the specified command hidden (without a visible window)."
WScript.Quit(0)
end select
' Separate the arguments into the executable name
' and a single string containing all arguments.
exe = WScript.Arguments(0)
@chponte
chponte / README.md
Created March 6, 2019 17:31
Lock down Windows 10 firewall

Lock down Windows 10 firewall (incomplete)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules

@chponte
chponte / gnu-toolchain.md
Last active August 3, 2024 00:44
Building a complete GNU toolchain, comprised of binutils + gcc + glibc
@chponte
chponte / filter_contigs.py
Created July 21, 2022 12:39
Ad hoc filter script
from random import randint
import pandas as pd
def main():
with open("/home/chponte/Descargas/Bmedia_15MD_002MAF_filtered.new.vcf", "x") as fout:
with open("/home/chponte/Descargas/Bmedia_15MD_002MAF_filtered.vcf", "r") as fin:
l = fin.readline()
while not l.startswith("#CHROM"):
fout.write(l)
l = fin.readline()