Skip to content

Instantly share code, notes, and snippets.

@nesh
nesh / destiny2-disable-firewall.ps1
Created February 15, 2021 12:27
Destiny 2 enable/disable firewall for solo strikes
<# This code requests administrator permissions so that the script can modify your Windows Firewall rules as needed #>
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
<# Once user input is detected, the script resumes and removes the port blocks, restoring things to how they were prior to running #>
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-1"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-2"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-3"
Remove-NetFirewallRule -DisplayName "Destiny2-Solo-4"
@nesh
nesh / 00 GameUserSettings.ini
Last active May 18, 2017 18:02
Disjunction ARK server setup (WIP)
[ServerSettings]
ActiveMods=630601751,731604991,760865850,730794403,554678442,815306540,793605978,543394681,764755314,719928795,889745138,756389708,898754545
RCONEnabled=true
RCONPort=XXXXX
ServerPassword=
SpectatorPassword=
ServerAdminPassword=
AutoSavePeriodMinutes=15
BanListURL=
<catalog_product_prepare_save>
<observers>
<My_Model>
<type>singleton</type>
<class>My_Model_Observer</class>
<method>catalog_product_prepare_save</method>
</My_Model>
</observers>
</catalog_product_prepare_save>
# original from http://activecodeline.com/git-ignore-gitignore-file-for-magento-project
# tested with Magento 1.4.0.1
# put it into magento install dir
app/code/community/Phoenix/
app/code/core/
app/design/adminhtml/default/default/
app/design/frontend/base/
C:\ nslookup vps2.local
<snip sve je u redu>
C:\ ping vps2.local
Ping request could not find vps2.local. Please check the name and try again.
#!/bin/bash
if [ ! -d ./env ]; then
virtualenv --python=python2.5 env
fi
if [ ! -f ./env/bin/pip ]; then
source ./env/bin/activate
./env/bin/easy_install -U docutils
./env/bin/easy_install -U pip
else
fink install svn wget spidermonkey spidermonkey-dev spidermonkey-shlibs erlang-otp help2man
sudo launchctl load -w /usr/local/Library/LaunchDaemons/org.apache.couchdb.plist
[couchdb]
database_dir = /usr/local/var/lib/couchdb
view_index_dir = /usr/local/var/lib/couchdb
[log]
file = /usr/local/var/log/couchdb/couch.log
wget -c http://download.icu-project.org/files/icu4c/4.0.1/icu4c-4_0_1-src.tgz
tar xzf icu4c-4_0_1-src.tgz
cd icu/source
./runConfigureICU MacOSX
make && sudo make install
cd ../..