This file contains hidden or 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
# Cisco AnyConnect can require that no other users be logged in. | |
# This script logs off these other users before launching it. | |
# Function to log off all users except the current one | |
function LogOffOtherUsers { | |
Write-Output "LogOffOtherUsers:" | |
$currentUser = (whoami).Split('\')[1] # Extract the username from "hostname\user" | |
Write-Output "Current user: $currentUser" | |
$sessions = quser | ForEach-Object -Process { $_ -replace '\s{2,}',',' } | ConvertFrom-Csv | |
$sessions | ForEach-Object { |
This file contains hidden or 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
$ErrorActionPreference = "Stop" | |
# Usage: extract-notes.ps1 <file> | |
$Filename = $args[0] | |
$Output = 'notes.md' | |
$Enc = 'Unicode' | |
Write-Host "Opening filename: '$Filename'" | |
Add-type -AssemblyName office |
This file contains hidden or 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
W/InputManagerService( 164): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40f2d8a8 | |
E/BinaryDictionaryGetter( 3372): Could not find a dictionary pack | |
E/ActivityThread( 3372): Failed to find provider info for com.android.inputmethod.latin.dictionarypack | |
F/libc ( 3372): Fatal signal 11 (SIGSEGV) at 0x0034dd44 (code=1) | |
I/DEBUG ( 2772): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
I/DEBUG ( 2772): Build fingerprint: 'Htc/cm_legend/legend:4.0.4/IMM76L/eng.zeubea.20120718.020845:userdebug/test-keys' | |
I/DEBUG ( 2772): pid: 3372, tid: 3372 >>> com.android.inputmethod.latin <<< | |
I/DEBUG ( 2772): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0034dd44 | |
I/DEBUG ( 2772): r0 00018388 r1 00048aa7 r2 00030710 r3 00122a9c | |
I/DEBUG ( 2772): r4 0022b2a8 r5 0034dd38 r6 00018371 r7 0025da08 |
This file contains hidden or 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
#LyX 2.0 created this file. For more info see http://www.lyx.org/ | |
\lyxformat 413 | |
\begin_document | |
\begin_header | |
\textclass book | |
\begin_preamble | |
\usepackage{a4wide} | |
\newfontfamily{\hebrewfont}[Script=Hebrew]{David CLM} | |
\end_preamble | |
\use_default_options false |
This file contains hidden or 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
#!/bin/bash | |
AMIXER="amixer -q" | |
$AMIXER -c0 set Line unmute | |
/usr/bin/mplayer tv:// -tv driver=v4l2:norm=PAL_BGHIN:width=853:height=480:outfmt=uyvy:device=/dev/video1:input=0:fps=25:immediatemode=1 -hardframedrop -aspect 16:9 | |
$AMIXER -c0 set Line mute |
This file contains hidden or 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
#/usr/bin/env python | |
import sys, re | |
text = sys.stdin.read() | |
result = unicode() | |
unicode_char_re = re.compile(r'\\u[0-9a-fA-F]{4}') | |
prev_pos = 0 | |
for m in unicode_char_re.finditer(text): | |
span = m.span() | |
result += text[prev_pos:span[0]] |
This file contains hidden or 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
Ch 1:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2561:2562:1 | |
Ch 2:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2593:2594:2 | |
Ch 10:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2625:2626:3 | |
Ch 33:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2657:2658:4 | |
Ch 99:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2689:2690:5 | |
Music:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:0:2817:21 | |
Music:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:0:2993:32 | |
Idan+ test_1:538000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:Q |
This file contains hidden or 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
#!/usr/bin/env python | |
# random-dict-password.py - Generate random passwords from a dictionary | |
# Copyright (c) 2012 Haggai Eran | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains hidden or 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
#!/bin/sh | |
if [ "$#" != 4 ] ; then | |
echo "Usage: $0 <url> <filename> <starttime> <endtime>" | |
exit 1 | |
fi | |
URL="$1" | |
FILENAME="$2" | |
STARTTIME="$3" |
This file contains hidden or 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#ifndef _TM | |
#error TM not enabled | |
#endif | |
int main(int argc, char** argv) | |
{ |