Skip to content

Instantly share code, notes, and snippets.

@shahalpk
shahalpk / anyconnect.desktop
Created May 18, 2021 13:27
CentOS application menu entry for Cisco Anyconnect VPN
[Desktop Entry]
Version=1.0
Name=Cisco Anyconnct VPN
Exec=/opt/cisco/anyconnect/bin/vpnui
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;
X-Desktop-File-Install-Version=0.15
Icon=/opt/cisco/anyconnect/resources/vpnui128.png
@shahalpk
shahalpk / next_good_start.sh
Last active July 18, 2020 10:28
MySQL Slave Replication - Find Next Good Start (After a given position)
#!/bin/bash
# Usage: next_good_start.sh /path/to/binlog/file START_POSITION_AS_NUMBER
BINLOG=$1
START=$2
RET=1
while [ $RET -eq 1 ]; do
# This is relying on the mysqlbinlog found in your path
@shahalpk
shahalpk / Mail_Signature_v1.0.0.html
Last active October 4, 2015 10:15
My Mail Signature
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="format-detection" content="telephone=no" />
<style type="text/css"> .possible-telephone-link a[href^="tel"]{
color:inherit;
text-decoration:none;
@shahalpk
shahalpk / example.com
Created October 23, 2014 07:22
Example Wordpress nginx conf
server {
listen 80;
listen [::]:80;
root /var/www/example.com;
index index.php index.html index.htm;
# Make site accessible from http://example.com/
server_name example.com;