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
sudo aptitude -y install nginx | |
cd /etc/nginx/sites-available | |
sudo rm default | |
sudo cat > jenkins | |
upstream app_server { | |
server 127.0.0.1:8080 fail_timeout=0; | |
} | |
server { | |
listen 80; |
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
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0x00, 0xAB, 0xCB, 0xCD, 0xDE, 0x02 }; | |
IPAddress ip(192,168,0,140); | |
IPAddress server(173,194,70,103); | |
EthernetClient client; |
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
<?php | |
namespace Fuel\Migrations; | |
class refactor_created_at_and_updated_at { | |
public function up() { | |
$tables = \DB::list_tables(); | |
foreach ($tables as $table) { | |
\Cli::write($table); | |
if(\DBUtil::field_exists($table, array('created_at', 'updated_at'))) { |
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
<!-- GZip static file content. Overrides the server default which only compresses static files over 2700 bytes --> | |
<httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024"> | |
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> | |
<staticTypes> | |
<add mimeType="text/*" enabled="true" /> | |
<add mimeType="message/*" enabled="true" /> | |
<add mimeType="application/javascript" enabled="true" /> | |
<add mimeType="application/json" enabled="true" /> | |
<add mimeType="*/*" enabled="false" /> | |
</staticTypes> |
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
#include<stdio.h> | |
#include<stddef.h> | |
#include<ueye.h> | |
HIDS hCam = 1; | |
void main() { | |
printf("Success-Code: %d\n",IS_SUCCESS); | |
//Kamera öffnen |
ffmpeg -i balloon-2.webm -an balloon-2-nosound.webm
ffmpeg -i infile.flv -vcodec wmv2 -sameq -acodec wmav2 -f output.wmv
for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -vcodec libtheora -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.ogv 2> /dev/null &; done
for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.webm 2> /dev/null &; done
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
#!/bin/bash | |
while :; do | |
verf=$(cat /dev/urandom | tr -dc '0-9' | fold -w 8 | head -n 1) | |
pin=$(cat /dev/urandom | tr -dc '0-9' | fold -w 5 | head -n 1) | |
ip=$(printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))") | |