View uninstall_office_2016.sh
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
View Dockerfile
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
FROM ubuntu:focal | |
ENV DEBIAN_FRONTEND=noninteractive | |
# explicitly set lang and workdir | |
ENV LANG="en_US.UTF-8" LC_ALL="C" LANGUAGE="en_US.UTF-8" | |
USER root | |
RUN apt-get remove -y vim-runtime gvim vim-tiny \ |
View open-with-default-application.py
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
import sys | |
import subprocess | |
import os | |
import platform | |
def open_with_default(path): | |
current_platform = platform.system() | |
if current_platform == "Linux": | |
subprocess.call(["xdg-open", path]) |
View vim_install.sh
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 | |
# Remove old vim installs | |
sudo apt-get remove vim vim-runtime gvim vim-tiny \ | |
vim-common vim-gui-common vim-nox gvim | |
# install vim-gtk deps | |
sudo apt-get build-dep vim-gtk | |
# install some more deps |
View cloudflareDoH.mobileconfig
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>DNSSettings</key> | |
<dict> | |
<key>DNSProtocol</key> |
View download_entire_website.sh
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 | |
if [[ $# != 2 ]]; then | |
echo "Error: wrong number of arguments" | |
echo "" | |
echo "Usage: ./download-entire-website.sh <domain> <url>" | |
echo "Example ./download-entire-website.sh websitetodownload.com www.websitetodownload.com/page/" | |
echo "" | |
exit -1 | |
fi |
View get-lockscreen-wallpapers.ps1
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
Copy-Item -Force -Recurse $env:USERPROFILE\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets $env:USERPROFILE\Pictures\LockScreen_Wallpapers | |
Dir $env:USERPROFILE\Pictures\LockScreen_Wallpapers | rename-item -newname { [io.path]::ChangeExtension($_.name, "jpg") } | |
explorer $env:USERPROFILE\Pictures\LockScreen_Wallpapers |
View aws_lambda_callback_redirect.js
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
callback(null, { | |
statusCode: 307, | |
headers: { | |
Location: 'https://github.com/pirafrank', | |
} | |
}) |
View tasks.json
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Serve", | |
"type": "shell", | |
"command": "bundle exec jekyll s", | |
"problemMatcher": [] |
View run_other_teams.ps1
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
# Read me: | |
# | |
# You need to do some setup before running this script. | |
# Check the link below. | |
# | |
# Run this script as admin in powershell. | |
# By the way if you run it in a standard powershell it will | |
# prompt to open a new shell as admin. | |
# |
NewerOlder