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 bash | |
# Copyright (C) 2019 Cloudfence - Julio Camargo | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. |
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 bash | |
# Execution time was ca. 50 minutes for 10000 lines | |
# Cleans out everything before ; e.g ": 1548515910:0;" | |
cat $HOME/.zsh_history | cut -d \; -f 2 | uniq > $HOME/.zsh_history_clean | |
# Cleaned tmpfile | |
filename=$HOME/.zsh_history_clean | |
# Do the work | |
while read -r line; do |
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 | |
# Usage: clone_all_repos.sh [organization] <output directory> | |
ORG=$1 | |
PER_PAGE=100 | |
GIT_OUTPUT_DIRECTORY=${2:-"/tmp/${ORG}_repos"} | |
if [ -z "$GITHUB_TOKEN" ]; then | |
echo -e "Variable GITHUB_TOKEN isn't set! Please specify your GitHub token.\n\nMore info: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/" | |
exit 1 |
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
# Ask admin to install the following packages: | |
# build-essential git libsecret-1-dev fakeroot rpm libx11-dev libxkbfile-dev libgnome-keyring-dev | |
# When that is done, you can install everything else locally | |
# Install Node.js | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash | |
source $HOME/.bashrc | |
nvm install v6.10.3 | |
nvm use v6.10.3 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<component type="addon"> | |
<id>com.obsproject.Studio.Plugin.backgroundremoval</id> | |
<extends>com.obsproject.Studio</extends> | |
<name>obs-backgroundremoval Plugin</name> | |
<summary> An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording.</summary> | |
<url type="homepage">https://github.com/royshil/obs-backgroundremoval</url> | |
<metadata_license>CC0-1.0</metadata_license> | |
<project_license>MIT</project_license> | |
</component> |
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 | |
EMAIL=me@gmail.com | |
KEY=11111111111111111111111111 | |
ZONE_ID=2222222222222222222222222 | |
curl -X GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500 \ | |
-H "X-Auth-Email: ${EMAIL}" \ | |
-H "X-Auth-Key: ${KEY}" \ | |
-H "Content-Type: application/json" | jq .result[].id | tr -d '"' | ( |
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
document.querySelectorAll('button.js-add-kudo').forEach(node => node.click()) |
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 bash | |
## Author: Tommy Miland (@tmiland) - Copyright (c) 2019 | |
if [[ "$EUID" -ne 0 ]]; then | |
echo -e "Sorry, you need to run this as root" | |
exit 1 | |
fi |
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/local/bin/php | |
<?php | |
// AbuseIPDB API v2 Key | |
$api_key = 'xxx'; | |
// AbuseIPDB API v2 Endpoint | |
$api_endpoint = 'https://api.abuseipdb.com/api/v2/'; | |
// AbuseIPDB User ID |
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
# list for use with hosts files to block The International Fact-Checking Network | |
# Source: ifcncodeofprinciples.poynter.org/signatories | |
127.0.0.1 www.afp.com/en | |
127.0.0.1 africacheck.org | |
127.0.0.1 www.lupa.news | |
127.0.0.1 apublica.org/truco | |
127.0.0.1 www.animalpolitico.com/elsabueso | |
127.0.0.1 aosfatos.org | |
127.0.0.1 www.ap.org | |
127.0.0.1 www.boomlive.in |
NewerOlder