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
| @echo off | |
| mkdir C:\Flyt | |
| icacls C:\Flyt /grant:r Everyone:(CI)(OI)M | |
| net share Flyt=C:\Flyt /GRANT:Everyone,CHANGE /USERS:2 /CACHE:None | |
| pause |
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
| import time | |
| import tornado.ioloop | |
| import tornado.web | |
| import pymysql | |
| # HTML templates | |
| html_begin = '''<!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> |
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
| For alle: Start med cd til roden af projekt-mappe | |
| ----- ZLIB ----- | |
| # wget -P ./download/ http://zlib.net/zlib-1.2.8.tar.gz | |
| - Slet eksisterende zlib dir | |
| - Udpak i zlib dir således at strukturen er: ./zlib/zlib.h | |
| # cd zlib |
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 | |
| L1=`grep $1 /etc/shadow|cut -d ":" -f 2` | |
| if [ $L1 ]; then | |
| SALT=`echo $L1|cut -d "$" -f 3` | |
| L2=`mkpasswd --salt=$SALT --method=sha-512 $2` | |
| if [ "$L1" == "$L2" ]; then | |
| exit 0 | |
| else | |
| exit 1 |
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
| # fold -s -w 70 | |
| import sys | |
| import random | |
| cons = 'bcdfghjklmnpqrstvwxz' | |
| consx = 'hjqvwx' | |
| vows = 'aeiouy' | |
| cvless = 'qxyz' | |
| def generate_word(cap): |
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
| procedure RunProcessAndCaptureOutput(const CmdLine: string; Memo: TMemo; HideLinesCount: Integer = 0); | |
| var | |
| SecAttr: TSecurityAttributes; | |
| PipeR, PipeW: THandle; | |
| StartupInfo: TStartupInfo; | |
| ProcessInfo: TProcessInformation; | |
| Buffer: packed array[0..4096-1] of AnsiChar; | |
| Count: Cardinal; | |
| S, Leftover: AnsiString; | |
| i, P: Cardinal; |
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
| type | |
| TRefCountObject = class(TObject) | |
| protected | |
| ExtraReferencesCount: Integer; { Default 0 } | |
| public | |
| procedure Free; | |
| function GetReference: TRefCountObject; | |
| end; | |
| procedure TRefCountObject.Free; |
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
| using System; | |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| public class RubberExample : Form { | |
| bool mouseDown = false; | |
| Point mouseDownPoint = Point.Empty; | |
| Point mousePoint = Point.Empty; |
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
| 64-bit WAMP (Windows, Apache, MariaDB/MySQL, PHP) til udvikling/test | |
| ==================================================================== | |
| Webserver med PHP | |
| ----------------- | |
| Opret C:\WAMP | |
| Opret C:\WAMP\www | |
| Download nyeste Apache binary (httpd 2.4) VC15 Win64 fra https://www.apachelounge.com/download/ |
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
| REM This file is not meant to be run in it's entirety | |
| REM --- Check if script is run as administrator | |
| net session >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo This script must be run with administrator privileges | |
| pause | |
| exit /B | |
| ) |
OlderNewer