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> | |
const char fzKey[] = "FILEZILLA1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
const int fzKeyLen = 45; | |
char *decrypt(const char *str, char *targetStr) { | |
int i = 0, oriLen = 0, pos; | |
if (!str || !targetStr) return 0; | |
*targetStr = 0; | |
for (; str[oriLen]; ++oriLen) |
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://stackoverflow.com/questions/11355353/how-can-i-convert-qbasic-play-commands-to-something-more-contemporary | |
// file: play2wav.c by Alexey Frunze | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <math.h> | |
#ifndef M_PI |
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/sh | |
N=${1:-2} | |
git reset --soft HEAD~$N && | |
git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{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
# pylint: disable=invalid-name | |
"Spiral iterator." | |
import sys | |
if sys.version_info[0] >= 3: | |
xrange = range | |
def revrange(b, a=0, step=1): | |
"Reverse iterator." | |
return xrange(b-step, a-step, -step) |
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
# pylint: disable=invalid-name | |
# pylint: disable=unused-argument | |
"ZigZag iterator." | |
import sys | |
if sys.version_info[0] >= 3: | |
xrange = range | |
def move(x, y, columns, rows): | |
"Tells us what to do next with x and y." |
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
@echo off | |
REM Usage: dll2lib some-file.dll | |
REM | |
REM Generates libsome-lib.a, some-file.lib from some-file.dll, | |
REM making an intermediate some-file.def from the results of | |
REM dumpbin /exports some-file.dll. | |
REM | |
REM Currently must run without path on DLL. | |
REM (Fix by removing path when of lib_name for LIBRARY line below?) | |
REM |
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 <string.h> | |
void usage(char* progname) { | |
fprintf(stderr, "%s pattern [files]\n", progname); | |
} | |
void search(char* pattern, FILE* in, char* prefix) { | |
int c; | |
unsigned long long offset = 0; |
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
--- kdelibs-3.5.7/kioslave/http/http.cc 2007-05-14 13:22:34.000000000 +0530 | |
+++ kdelibs-3.5.7/kioslave/http/http.cc 2007-08-03 03:44:27.000000000 +0530 | |
@@ -2048,13 +2048,19 @@ | |
kdDebug(7113) << "(" << m_pid << ") HTTPProtocol::httpOpenConnection" << endl; | |
setBlockConnection( true ); | |
- // kio_http uses its own proxying: | |
- KSocks::self()->disableSocks(); | |
if ( m_state.doProxy ) |
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
//Centralized password authentication server. | |
//Written by clever kid. | |
#include <netlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define PASSFILE "password.txt" |
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/sh | |
exec ./gradlew build \ | |
-x :logstash-core:javaTests \ | |
-x :logstash-core:rubyTests \ | |
-x logstash-integration-tests:integrationTests \ | |
-x benchmark-cli:test \ | |
"$@" |
OlderNewer