Skip to content

Instantly share code, notes, and snippets.

View macdet's full-sized avatar
🏠
Working from home

Detlev Lengsfeld macdet

🏠
Working from home
View GitHub Profile
@pdelteil
pdelteil / gob-cl-chile.txt
Last active April 24, 2024 04:51
domains government sites Chile
_5a34971da639c5b9eb49bedf7f462269.eboleta.sii.cl
_dmarc.pjud.cl
10.inapi.cl
11.alo.mop.cl
11.inapi.cl
12.alo.mop.cl
12.inapi.cl
13.inapi.cl
14.alo.mop.cl
14.inapi.cl
resolvers:
- 1.1.1.1
- 1.0.0.1
- 8.8.8.8
- 8.8.4.4
- 9.9.9.9
- 9.9.9.10
- 77.88.8.8
- 77.88.8.1
- 208.67.222.222
@nnja
nnja / .pdbrc
Created August 2, 2019 12:55
My .pdbrc file with an interacti alias
# Install IPython: python3 -m pip install ipython
import IPython
from traitlets.config import get_config
cfg = get_config()
cfg.InteractiveShellEmbed.colors = "Linux" # syntax highlighting
cfg.InteractiveShellEmbed.confirm_exit = False
alias interacti IPython.embed(config=cfg)
@andrewp-as-is
andrewp-as-is / Time Machine exclusions.command
Last active February 10, 2024 08:23
macOS Time Machine exclusions
#!/usr/bin/env bash
{ set +x; } 2>/dev/null
IFS=$'\n'
set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles
set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive
set "$@" ~/git # store on github/etc :)
set "$@" ~/node_modules
set "$@" ~/Applications # install apps with brew cask
@luqmaan
luqmaan / write_to_clipboard.py
Last active April 5, 2023 16:35
Write a python string to the clipboard via pbcopy (OS X)
def write_to_clipboard(output):
import subprocess
process = subprocess.Popen('pbcopy', env={'LANG': 'en_US.UTF-8'}, stdin=subprocess.PIPE)
process.communicate(output.encode())