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
function Rename-HomeDir { | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$true)] | |
[String]$OldName, | |
[Parameter(Mandatory=$true)] | |
[String]$NewName | |
) |
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
/* PrismJS 1.24.1 | |
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+bash+basic+c+csharp+cpp+diff+dns-zone-file+git+java+javastacktrace+json+json5+log+markup-templating+nginx+perl+php+powerquery+powershell+puppet+python+regex+ruby+rust+shell-session+sql+vim+visual-basic+xml-doc+yaml */ | |
/** | |
* okaidia theme for JavaScript, CSS and HTML | |
* Loosely based on Monokai textmate theme by http://www.monokai.nl/ | |
* @author ocodia | |
*/ | |
code[class*="language-"], | |
pre[class*="language-"] { |
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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <disassembler@dasm.cz> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.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
# tar -zxvf openvpn-2.3.6.tar.gz | |
x openvpn-2.3.6, 0 bytes, 0 tape blocks | |
x openvpn-2.3.6/openvpn.sln, 2323 bytes, 5 tape blocks | |
x openvpn-2.3.6/msvc-env.bat, 1538 bytes, 4 tape blocks | |
x openvpn-2.3.6/config.h.in, 20812 bytes, 41 tape blocks | |
x openvpn-2.3.6/sample, 0 bytes, 0 tape blocks | |
x openvpn-2.3.6/sample/Makefile.am, 918 bytes, 2 tape blocks | |
x openvpn-2.3.6/sample/Makefile.in, 16744 bytes, 33 tape blocks | |
x openvpn-2.3.6/sample/sample-config-files, 0 bytes, 0 tape blocks | |
x openvpn-2.3.6/sample/sample-config-files/tls-office.conf, 1948 bytes, 4 tape blocks |
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
# wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz | |
--2015-04-08 23:32:00-- http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz | |
Resolving www.oberhumer.com (www.oberhumer.com)... 193.170.194.40 | |
Connecting to www.oberhumer.com (www.oberhumer.com)|193.170.194.40|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 594855 (581K) [application/x-gzip] | |
Saving to: ‘lzo-2.09.tar.gz’ | |
lzo-2.09.tar.gz 100%[=====================>] 580.91K 665KB/s in 0.9s |
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
# git clone https://github.com/kaizawa/tuntap.git | |
Cloning into 'tuntap'... | |
remote: Counting objects: 134, done. | |
remote: Total 134 (delta 0), reused 0 (delta 0), pack-reused 134 | |
Receiving objects: 100% (134/134), 88.35 KiB, done. | |
Resolving deltas: 100% (76/76), done. | |
# cd tuntap | |
# ./configure | |
checking for gcc... gcc | |
checking whether the C compiler works... yes |
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
--- bashhist.c.orig 2010-12-07 04:16:12.692508765 -0500 | |
+++ bashhist.c 2010-12-07 04:43:19.635794444 -0500 | |
@@ -709,12 +709,12 @@ | |
char trunc[SYSLOG_MAXLEN]; | |
if (strlen(line) < SYSLOG_MAXLEN) | |
- syslog (SYSLOG_FACILITY|SYSLOG_LEVEL, "HISTORY: PID=%d UID=%d %s", getpid(), current_user.uid, line); | |
+ syslog (SYSLOG_FACILITY|SYSLOG_LEVEL, "HISTORY: [%s UID=%d] %s", current_user.user_name, current_user.uid, line); | |
else | |
{ |