Skip to content

Instantly share code, notes, and snippets.

View kayone's full-sized avatar

Keivan Beigi kayone

View GitHub Profile
@kayone
kayone / appget.ps1
Created September 24, 2019 21:50
auto-install
$installPath ="$env:TEMP\appget.exe"
Write-Output "Downloading AppGet installer to $installPath"
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://appget.net/download","$installPath");
$proc = Start-Process -Wait -FilePath $installPath -ArgumentList "/SILENT /NOCANCEL /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /FORCECLOSEAPPLICATIONS /NORESTARTAPPLICATIONS /RESTARTEXITCODE=3010"
@kayone
kayone / node-search.txt
Last active January 29, 2019 20:08
appget-node
C:\>appget search node
Found 148 package(s)
| ID | Name | Version | Tag |
|-----------------------------|-------------------------------|-----------|---------|
| node | Node.js | 11.8.0.0 | 11.8.0 |
| node | Node.js | 11.7.0.0 | 11.7.0 |
| node | Node.js | 11.6.0.0 | 11.6.0 |
| node | Node.js | 11.5.0.0 | 11.5.0 |
| node | Node.js | 11.4.0.0 | 11.4.0 |
@kayone
kayone / README.md
Created September 1, 2018 03:38 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
@kayone
kayone / WUA_SearchDownloadInstall.vbs
Last active December 14, 2016 20:14
Windows Update Script
Set updateSession = CreateObject("Microsoft.Update.Session")
updateSession.ClientApplicationID = "MSDN Sample Script"
Set updateSearcher = updateSession.CreateUpdateSearcher()
WScript.Echo "Searching for updates..." & vbCRLF
Set searchResult = _
updateSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0")
var _ = require('underscore');
var Backbone = require('backbone');
var PageableCollection = require('backbone.pageable');
var SeriesModel = require('./SeriesModel');
var ApiData = require('../Shared/ApiData');
var AsFilteredCollection = require('../Mixins/AsFilteredCollection');
var AsSortedCollection = require('../Mixins/AsSortedCollection');
var AsPersistedStateCollection = require('../Mixins/AsPersistedStateCollection');
var moment = require('moment');
<dl class="monitor-tooltip-contents">
<dt>All</dt>
<dd>Monitor all episodes except specials</dd>
<dt>Future</dt>
<dd>Monitor episodes that have not aired yet</dd>
<dt>Missing</dt>
<dd>Monitor episodes that do not have files or have not aired yet</dd>
<dt>Existing</dt>
<dd>Monitor episodes that have files or have not aired yet</dd>
<dt>First Season</dt>
@kayone
kayone / ubuntu-init.sh
Last active November 16, 2021 03:26
ubuntu-init
apt-get remove --purge libreoffice* -y
apt-get remove --purge thunderbird* -y
apt-get remove --purge rhythmbox* -y
apt-get remove --purge unity-lens-music -y
apt-get remove --purge unity-lens-photo -y
apt-get remove --purge unity-lens-video -y
#apt-get remove --purge unity-scope-* -y
#apt-get install unity-scope-calculator -y
@kayone
kayone / gist:ccc8503a55cf709abc3e
Last active August 29, 2015 14:13
TVDB Hammer
Getting: 70327
Passed 00:00:07.9702035
==============================================================
Getting: 70328
Passed 00:00:10.0516132
==============================================================
Getting: 70329
Passed 00:00:00.6442383
==============================================================
Getting: 70336
@kayone
kayone / gist:a9ccf4cca7d422b90a35
Created January 1, 2015 03:58
sonarr dependencies
libmono-system-web4.0-cil
libmono-microsoft-csharp4.0-cil
libmono-system-serviceprocess4.0-cil
libmono-system-servicemodel-discovery4.0-cil
public class JsonRpcResponse<T>
{
public string Id {get;set;}
public T Result {get;set;}
public JsonRpError Error {get;set;}
}