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
#This is a fork of pipista 2.0, by pudquick: https://gist.github.com/transistor1/8191833615d58d44e33a | |
#The only difference between this and the original is that the tabs are consistent, which seems to have | |
#caused some strange xmlrpclib error. | |
import os, os.path, sys, urllib2, requests, tempfile, zipfile, shutil, gzip, tarfile | |
__pypi_base__ = os.path.abspath(os.path.dirname(__file__)) | |
class PyPiError(Exception): | |
def __init__(self, value): |
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 os, cmd, sys, re, glob, os.path, shutil, zipfile, tarfile, gzip, string, urllib2, traceback, time, json | |
# Credits | |
# | |
# The python code here was written by pudquick@github | |
# | |
# License | |
# | |
# This code is released under a standard MIT license. | |
# |
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 | |
USER=git-username | |
PREFIX=shellista | |
REPO=$PREFIX-$1 | |
echo "Enter password:" | |
read -s PASSWORD | |
curl -u "$USER:$PASSWORD" https://api.github.com/user/repos -d "{\"name\":\"$REPO\"}" |
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
namespace Zeta.EnterpriseLibrary.Tools | |
{ | |
#region Using directives. | |
// ---------------------------------------------------------------------- | |
using System; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Security; |
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 python | |
""" | |
Check all existing Docker containers for their mapped paths, and then purge any | |
zombie directories in docker's volumes directory which don't correspond to an | |
existing container. | |
""" | |
# By using execfile(this_file, dict(__file__=this_file)) you will | |
this_file="/home/russosv/bin/env/bin/activate_this.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
diff --git a/nbproject/antlrworks2.conf b/nbproject/antlrworks2.conf | |
index f3dd168..4f4d7f0 100644 | |
--- a/nbproject/antlrworks2.conf | |
+++ b/nbproject/antlrworks2.conf | |
@@ -9,6 +9,7 @@ default_options="-J-server -J-XX:+TieredCompilation -J-Xms128m -J-Dnetbeans.logg | |
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch | |
#jdkhome="/path/to/jdk" | |
+jdkhome="/usr/lib/jvm/java-8-oracle/jre" | |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst visualstudio2017professional | |
cinst visualstudio2017-workload-manageddesktop | |
cinst wixtoolset | |
cinst git | |
cinst kdiff3 | |
cinst gitextensions | |
cinst office365business |
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 | |
mkdir -p /home/$(whoami)/OSXGUEST | |
cd /home/$(whoami)/OSXGUEST | |
git clone https://github.com/coreboot/seabios.git | |
wget https://raw.githubusercontent.com/transistor1/packages-archlinux/master/seabios-osx-git/seabios-dmi-cumulative-20140204.patch | |
cd seabios | |
git checkout rel-1.7.4 | |
patch -p1 < ../seabios-dmi-cumulative-20140204.patch | |
cd .. |
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 | |
# Source: https://forums.macrumors.com/threads/is-my-virtual-mac-pro-better-than-your-real-mp.2121703/#post-27283133 | |
# See https://www.mail-archive.com/[email protected]/msg471657.html thread. | |
# | |
# The "pc-q35-2.4" machine type was changed to "pc-q35-2.9" on 06-August-2017. | |
# | |
# The "media=cdrom" part is needed to make Clover recognize the bootable ISO | |
# image. |
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
""" Tested on Windows 10, 64 bit, Python 3.6 | |
Sources: | |
https://eli.thegreenplace.net/2015/redirecting-all-kinds-of-stdout-in-python/ | |
https://stackoverflow.com/questions/17942874/stdout-redirection-with-ctypes | |
Adapted as multiplatform c-redirect | |
""" | |
from contextlib import contextmanager |
OlderNewer