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
# Small script to transform hugo markdown files with html to pure markdown | |
import requests | |
import os | |
import dateparser | |
url = "https://tools.atatus.com/tools/html-to-markdown" | |
working_dir = "location of the hugo blog posts" | |
posts = os.listdir(working_dir) |
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 <iostream> | |
#include <string> | |
#define SQL(...) #__VA_ARGS__ | |
int main(int argc, char *argv[]) | |
{ | |
std::string strDynSql = "dynparam"; | |
std::string strSql( SQL( |
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 <iostream> | |
#include <aws/core/Aws.h> | |
#include <aws/sns/SNSClient.h> | |
#include <aws/core/auth/AWSCredentialsProvider.h> | |
#include <aws/sns/model/PublishRequest.h> | |
#include <aws/sns/model/MessageAttributeValue.h> | |
int main(int argc, char *argv[]) | |
{ | |
Aws::SDKOptions options; |
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 <iostream> | |
#include <pthread.h> | |
bool bEnd = false; | |
pthread_cond_t cv; | |
pthread_mutex_t mp; | |
bool bDataReady = false; | |
bool bProcessed = false; | |
void* perform_work(void* argument) { |
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
# | |
# Copyright 2012 The WebRTC Project Authors. All rights reserved. | |
# | |
# Use of this source code is governed by a BSD-style license | |
# that can be found in the LICENSE file in the root of the source | |
# tree. An additional intellectual property rights grant can be found | |
# in the file PATENTS. All contributing project authors may | |
# be found in the AUTHORS file in the root of the source tree. | |
{ |
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
diff --git a/cerbero/enums.py b/cerbero/enums.py | |
index 88edefe..f80373e 100644 | |
--- a/cerbero/enums.py | |
+++ b/cerbero/enums.py | |
@@ -34,7 +34,7 @@ class Architecture: | |
UNIVERSAL = 'universal' | |
ARM = 'arm' | |
ARMv7 = 'armv7' | |
- | |
+ MIPS = 'mips' |
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
Sub Click(Source As Button) | |
Dim dialog As New NotesUIWorkspace | |
Dim Maildb As NotesDatabase | |
Dim Session As New NotesSession | |
Dim view As NotesView | |
Set Maildb = Session.CurrentDatabase | |
' ATTENTION: enter the folder name here | |
folderName = "testfolder" |
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 <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stddef.h> | |
#include <errno.h> | |
#include <sys/time.h> //debug -> remove me | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> |
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 | |
#checks and merges 2 folders | |
output_file="output.txt" | |
sep_chr="----" | |
c_dir=$( pwd ) | |
n_args=2 #minimum number of args | |
mmerge=0 | |
#some colors | |
text_green=$(tput setaf 2) |
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 <stdlib.h> | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
#include <sys/types.h> | |
static const char* socket_path = "/home/mysocket"; | |
static const unsigned int s_recv_len = 200; | |
static const unsigned int s_send_len = 100; |
NewerOlder