Skip to content

Instantly share code, notes, and snippets.

View jthelin's full-sized avatar

Jorgen Thelin jthelin

View GitHub Profile
@elmot
elmot / CMakeLists.txt
Last active June 13, 2024 14:09
CMakeLists.txt template for ARM GCC projects
cmake_minimum_required(VERSION 3.17)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_VERSION 1)
# specify cross compilers and tools
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(CMAKE_ASM_COMPILER arm-none-eabi-gcc)
set(CMAKE_AR arm-none-eabi-ar)
set(CMAKE_OBJCOPY arm-none-eabi-objcopy)
set(CMAKE_OBJDUMP arm-none-eabi-objdump)
@adujardin
adujardin / cmake_apt_update.sh
Last active June 25, 2020 22:14
Update cmake Ubuntu
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# https://apt.kitware.com/
if [ -n "$(uname -a | grep Ubuntu)" ]; then
apt-get update ; apt-get install lsb-release apt-transport-https ca-certificates gnupg software-properties-common wget -y
@alexellis
alexellis / k8s-pi.md
Last active April 11, 2024 14:17
K8s on Raspbian
@fish2000
fish2000 / AXDatabase.h
Created February 20, 2017 01:29
Basic Objective-C RocksDB Wrapper (w/ KVC)
//
// AXDatabase.h
// YoDogg
//
// Created by Alexander Böhn on 2/19/17.
// Copyright © 2017 Alexander Böhn. All rights reserved.
//
#import <Foundation/Foundation.h>
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 26, 2024 17:02
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@fox-srt
fox-srt / juniper-cve-2015-7755.rules
Last active August 23, 2016 15:52
Snort coverage for Juniper ScreenOS backdoor
# Signatures to detect successful abuse of the Juniper backdoor password over telnet.
# Additionally a signature for detecting world reachable ScreenOS devices over SSH.
alert tcp $HOME_NET 23 -> any any (msg:"FOX-SRT - Flowbit - Juniper ScreenOS telnet (noalert)"; flow:established,to_client; content:"Remote Management Console|0d0a|"; offset:0; depth:27; flowbits:set,fox.juniper.screenos; flowbits:noalert; reference:cve,2015-7755; reference:url,http://kb.juniper.net/JSA10713; classtype:policy-violation; sid:21001729; rev:2;)
alert tcp any any -> $HOME_NET 23 (msg:"FOX-SRT - Backdoor - Juniper ScreenOS telnet backdoor password attempt"; flow:established,to_server; flowbits:isset,fox.juniper.screenos; flowbits:set,fox.juniper.screenos.password; content:"|3c3c3c20257328756e3d2725732729203d202575|"; offset:0; fast_pattern; classtype:attempted-admin; reference:cve,2015-7755; reference:url,http://kb.juniper.net/JSA10713; sid:21001730; rev:2;)
alert tcp $HOME_NET 23 -> any any (msg:"FOX-SRT - Backdoor - Juniper Scr
@jthelin
jthelin / hadoop-native-2.6.0-VS2013.diff
Created September 9, 2015 18:35
hadoop-native-2.6.0-VS2013.diff
diff --git a/.gitignore b/.gitignore
index 8b132cb..1acc80f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ hadoop-common-project/hadoop-common/src/test/resources/contract-test-options.xml
hadoop-tools/hadoop-openstack/src/test/resources/contract-test-options.xml
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/main/tla/yarnregistry.toolbox
yarnregistry.pdf
+hadoop-common-project/hadoop-common/src/main/winutils/x64/
diff --git a/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj b/hadoop-common-project/hadoop-common/src/main/native/native.vcxproj
@canweriotnow
canweriotnow / helloworld.pony
Created July 21, 2015 18:04
Hello, Ponytest!
class HelloWorld
let hello: String = "Hello, "
new create() =>
hello
fun say_hello(who: String = "World"): String =>
hello.add(who)
@ReubenBond
ReubenBond / Program.cs
Created July 6, 2015 12:29
Orleans with client/server/interfaces/implementations in a single file. https://github.com/dotnet/orleans/pull/528
namespace RosleansSilo
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using Orleans;
@jthelin
jthelin / CleanAll.cmd
Created June 7, 2015 01:59
CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree.
@REM CleanAll.cmd - Script to clean all working files from a Visual Studio solution tree.
@REM - Place this file in the solutuon root directory.
@setlocal
@echo off
@if NOT "%ECHO%"=="" @echo %ECHO%
set CMDHOME=%~dp0
@echo Deleting build output files