This file contains 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
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' |
This file contains 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { |
This file contains 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
<embed wmode="transparent" src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" | |
width="720" height="550" | |
name="chat" FlashVars="id=6" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" | |
pluginspage="http://xat.com/update_flash.php" /> |
This file contains 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
https://guides.github.com/features/mastering-markdown/#examples | |
https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf |
This file contains 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
//main.js | |
var cm = require("sdk/context-menu"); | |
var item = cm.Item({ | |
label: "Search on google", | |
data: "MyId", | |
//context: cm.PageContext() | |
//context: cm.URLContext(["*.mozilla.org","*.reddit.com"]) | |
//context: cm.SelectionContext() |
This file contains 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
//silly.js | |
function sumNumbers(a, b){ | |
return a+b; | |
} | |
function sumNumbersAsync(a, b, callback){ | |
var result = a + b; | |
callback(result); | |
} |
This file contains 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
For 1920x1080 resolution: (thanks Raccoonix from the comments) | |
net_graphheight 64 | |
net_graphinsetbottom 437 | |
net_graphinsetleft 0 | |
net_graphinsetright -30 | |
net_graphpos 1 | |
net_graphproportionalfont 0 | |
net_graphtext 1 |
This file contains 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
public void SelfDestroy() | |
{ | |
string currentPath = Environment.CurrentDirectory; | |
string programName = Process.GetCurrentProcess().ProcessName; | |
string path = string.Format(@"{0}\{1}", currentPath, programName); | |
Process.Start(new ProcessStartInfo() | |
{ | |
Arguments = string.Format("/C choice /C Y /N /D Y /T 3 & Del \"{0}\"", path), |
This file contains 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
using System; | |
using System.Collections; | |
using System.Configuration.Install; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Reflection; | |
using System.ServiceProcess; | |
using System.Windows.Forms; | |
using Microsoft.Win32; |
This file contains 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
using System.Management; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Test_CSharp_Console | |
{ | |
/// <summary> | |
/// Generates a 16 byte Unique Identification code of a computer | |
/// Example: 4876-8DB5-EE85-69D3-FE52-8CF7-395D-2EA9 | |
/// </summary> |
OlderNewer