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
@echo off | |
echo Removing DLL files from Git tracking, but keeping them locally... | |
git rm --cached -r *.dll || echo *.dll files not found, continuing | |
echo Removing build directories from Git tracking... | |
git rm --cached -r [Dd]ebug/ || echo [Dd]ebug/ directory not found, continuing | |
git rm --cached -r [Dd]ebugPublic/ || echo [Dd]ebugPublic/ directory not found, continuing | |
git rm --cached -r [Rr]elease/ || echo [Rr]elease/ directory not found, continuing | |
git rm --cached -r [Rr]eleases/ || echo [Rr]eleases/ directory not found, continuing | |
git rm --cached -r x64/ || echo x64/ directory not found, continuing |
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" ?> | |
<configuration> | |
<configSections> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | |
</configSections> | |
<log4net> | |
<!-- Define some basic settings --> | |
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"> | |
<layout type="log4net.Layout.PatternLayout"> |
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
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Timers; | |
using log4net; | |
using log4net.Config; | |
class Program | |
{ | |
private static readonly ILog log = LogManager.GetLogger(typeof(Program)); |
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
<div> | |
@if(auth()->id() != $myrecord->user_id) | |
<p>Display stuff for logged in user</p> | |
@endif | |
</div> |
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
var ServiceNowData = Class.create(); | |
ServiceNowData.prototype = { | |
initialize : function(dryRun, table, encodedQuery, addedQueries, orderBy, fields) { | |
this.dryRun = dryRun; | |
this.table = table; | |
this.encodedQuery = encodedQuery; | |
this.addedQueries = addedQueries; | |
this.orderBy = orderBy; | |
this.fields = fields; |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="GridViewTest.WebForm1" %> | |
<!DOCTYPE html> | |
<script runat="server"> | |
void AddWindow_Click(Object sender, EventArgs e) | |
{ | |
System.Data.SqlClient.SqlConnection sqlConnection1 = new System.Data.SqlClient.SqlConnection("Server=LAPTOP-53EAQ51T;Database=films;Trusted_Connection=True;"); |
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
sudo fuser -n tcp -k 9001 | |
pkill {process 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
Update everything in Ubuntu (usefull when you have a broken system) | |
====================================================================================================================== | |
apt-get update | |
dpkg --configure -a | |
apt-get dist-upgrade | |
apt-get -f install |
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
[{"id":"0","manufacture":"Baush & Lomb","name":"1 Day Acuvue Define","type":"1 Day","pack":"30","base_curve":"8.4","diameter":"0","power":"0","box_price":"31.00","annual_price":"60.00","rating":"0"},{"id":"1","manufacture":"Baush & Lomb","name":"Biotrue On Day","type":"1 Day","pack":"90","base_curve":"8.5","diameter":"0","power":"0","box_price":"75.00","annual_price":"60.00","rating":"0"},{"id":"2","manufacture":"Baush & Lomb","name":"BioTrue One Day Toric","type":"1 Day","pack":"90","base_curve":"8.4","diameter":"0","power":"0","box_price":"36.00","annual_price":"75.00","rating":"0"},{"id":"3","manufacture":"Baush & Lomb","name":"BioTrue One Day Toric","type":"1 Day","pack":"30","base_curve":"8.5","diameter":"0","power":"0","box_price":"84.00","annual_price":"75.00","rating":"0"},{"id":"4","manufacture":"Baush & Lomb","name":"BioTrue One Day Multifocal","type":"1 Day","pack":"90","base_curve":"8.4","diameter":"0","power":"0","box_price":"42.00","annual_price":"100.00","rating":"0"},{"id":"5","manufacture":"B |
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 of all the hotfixes from https://technet.microsoft.com/en-us/library/security/ms17-010.aspx | |
$hotfixes = "KB3205409", "KB3210720", "KB3210721", "KB3212646", "KB3213986", "KB4012212", "KB4012213", "KB4012214", "KB4012215", "KB4012216", "KB4012217", "KB4012218", "KB4012220", "KB4012598", "KB4012606", "KB4013198", "KB4013389", "KB4013429", "KB4015217", "KB4015438", "KB4015546", "KB4015547", "KB4015548", "KB4015549", "KB4015550", "KB4015551", "KB4015552", "KB4015553", "KB4015554", "KB4016635", "KB4019213", "KB4019214", "KB4019215", "KB4019216", "KB4019263", "KB4019264", "KB4019472", "KB4015221", "KB4019474", "KB4015219", "KB4019473" | |
#checks the computer it's run on if any of the listed hotfixes are present | |
$hotfix = Get-HotFix -ComputerName $env:computername | Where-Object {$hotfixes -contains $_.HotfixID} | Select-Object -property "HotFixID" | |
#confirms whether hotfix is found or not | |
if (Get-HotFix | Where-Object {$hotfixes -contains $_.HotfixID}) | |
{ | |
"Found HotFix: " + $hotfix.HotFixID |
NewerOlder