Skip to content

Instantly share code, notes, and snippets.

View sdovnic's full-sized avatar
🐱
Inspector Cat

Svenja Dovnic sdovnic

🐱
Inspector Cat
  • DNN digital-nerv.net
  • Allemagne
View GitHub Profile
@sdovnic
sdovnic / tmux-cheatsheet.markdown
Created June 27, 2016 20:45 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<title>Cool web-app</title>
<!-- iPhone - iPod touch - 320x460 -->
<link href="splashscreen.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" rel="apple-touch-startup-image">
<!-- iPhone - iPod (Retina) - 640x920 -->
@sdovnic
sdovnic / self-elevating-script.ps1
Last active February 6, 2023 18:27 — forked from zblesk/self-elevating-script.ps1
A self-elevating powershell script.
if (([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
{
"Running as admin in $PSScriptRoot"
}
else
{
"NOT running as an admin!"
Start-Process powershell -WorkingDirectory $PSScriptRoot -Verb runAs -ArgumentList "-noprofile -noexit -file $PSCommandPath"
return "Script re-started with admin privileges in another shell. This one will now exit."
}