PS: Discover Contacts Listed In Active Directory

PS: Discover Contacts Listed In Active Directory

Get-ADObject -Filter 'objectClass -eq "contact"' -Properties CN | Format-List CN

 

Advertisements
PS: Dark Theme For Slack!!!

PS: Dark Theme For Slack!!!

Hi Guys

If you run the below snippet it will push your Slack client into the much needed and sexy dark theme. Give it a go and let me know what you think

set-location $env:LOCALAPPDATA\slack\app*\resources\app.asar.unpacked\src\static
$darkjs=@'
// First make sure the wrapper app is loaded
document.addEventListener("DOMContentLoaded", function() {

   // Then get its webviews
   let webviews = document.querySelectorAll(".TeamView webview");

   // Fetch our CSS in parallel ahead of time
   const cssPath = 'https://cdn.rawgit.com/widget-/slack-black-theme/master/custom.css';
   let cssPromise = fetch(cssPath).then(response => response.text());

   let customCustomCSS = `
   :root {
      /* Modify these to change your theme colors: */
      --primary: #09F;
      --text: #CCC;
      --background: #080808;
      --background-elevated: #222;
   }
   `

   // Insert a style tag into the wrapper view
   cssPromise.then(css => {
      let s = document.createElement('style');
      s.type = 'text/css';
      s.innerHTML = css + customCustomCSS;
      document.head.appendChild(s);
   });

   // Wait for each webview to load
   webviews.forEach(webview => {
      webview.addEventListener('ipc-message', message => {
         if (message.channel == 'didFinishLoading')
            // Finally add the CSS into the webview
            cssPromise.then(css => {
               let script = `
                     let s = document.createElement('style');
                     s.type = 'text/css';
                     s.id = 'slack-custom-css';
                     s.innerHTML = \`${css + customCustomCSS}\`;
                     document.head.appendChild(s);
                     `
               webview.executeJavaScript(script);
            })
      });
   });
});
'@
Add-Content .\ssb-interop.js -Value $darkjs

 

SCCM: System Chassis Types

SCCM: System Chassis Types

ChassisTypes Value System Type
1 Other
2 Unknown
3 Desktop (including virtual machines)
4 Low Profile Desktop
5 Pizza Box
6 Mini Tower
7 Tower
8 Portable
9 Laptop
10 Notebook
11 Hand Held
12 Docking Station
13 All in One
14 Sub Notebook
15 Space-Saving
16 Lunch Box
17 Main System Chassis
18 Expansion Chassis
19 Sub Chassis
20 Bus Expansion Chassis
21 Peripheral Chassis
22 Storage Chassis
23 Rack Mount Chassis
24 Sealed-Case PC
SIP: Kamilio on Centos7

SIP: Kamilio on Centos7

Quick guide from my old notebooks to deploy Kamilio on a Centos 7 Box with minimal configuration

– Disable SELinux
Install base packages
– yum -y groupinstall Base
Perform server update
– yum -y update
Install Extra Packages for Enterprise Linux
– yum -y install epel-release
Install Database Service
– yum install mariadb-server mariadb php php-mysql php-gd php-curl
Configure Database Service to Start on Boot
– systemctl start mariadb
– systemctl enable mariadb
Check database service is now running
– systemctl status mariadb
Configure Database Root Password
– mysql_secure_installation
Add Kamailio’s Repo
– nano /etc/yum.repos.d/kamailio.repo
[kamailio]
name=RPMs for Kamailio on CentOS 7
type=rpm-md
baseurl=http://rpm.kamailio.org/stable/CentOS_7/
gpgcheck=1
gpgkey=http://rpm.kamailio.org/stable/CentOS_7/repodata/repomd.xml.key
enabled=1
Do system update
– yum update
Install Kamailio Packages
– yum install -y kamailio kamailio-ldap kamailio-mysql kamailio-postgres kamailio-debuginfo kamailio-xmpp kamailio-unixodbc kamailio-utils kamailio-tls kamailio-outbound kamailio-gzcompress kamailio-presence
Configure Kamailio to use the local mySQL Instance
– nano /etc/kamailio/kamctlrc
DBENGINE variable is set to MySQL. Remove the pound symbol to uncomment it.
Create Database for Kamilio
– kamdbctl create
Enter Y for each question
Edit /etc/kamailio/kamailio.cfg to configure Kamailio
– nano /etc/kamailio/kamailio.cfg
Add the following lines just below #!KAMAILIO.
#!define WITH_MYSQL
#!define WITH_TLS
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_PRESENCE
#!define WITH_ACCDB
Start Kamailio Service
– service kamailio start
Configure Kamailio service to start on boot
– systemctl enable kamailio
You are now up and running