Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ....Core.Control { | |
// https://github.com/jamesmontemagno/FrenchPressTimer/blob/master/SimpleTimerPortable/Timer.cs | |
internal delegate void TimerCallback(object state); | |
internal sealed class Timer : CancellationTokenSource, IDisposable { | |
public Timer(TimerCallback callback, object state, int dueTime, int period) { |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
// using System.Timers; | |
using Xamarin.Forms; | |
namespace ....Core.Control | |
{ | |
public class CarouselLayout : ScrollView, IDisposable |
# | |
# This script will increment the build number in a file | |
# refactored from the AssemblyInfo.cs version incrementing gist for use with AndroidManifest.xml | |
# | |
#$assemblyInfoPath = "C:\Data\Temp\AssemblyInfo.cs" | |
$mani = "C:\Data\Temp\AndroidManifest.xml" | |
#$contents = Get-Content $assemblyInfoPath # looses file formatting | |
$contents = [System.IO.File]::ReadAllText($mani) |
$currentBranch = git rev-parse --abbrev-ref HEAD | |
git checkout dev | |
git pull | |
git checkout $currentBranch | |
git merge dev |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
from gpiozero import LED, MotionSensor, LightSensor | |
from signal import pause | |
pir = MotionSensor(21) | |
ldr = LightSensor(26) | |
light = LED(25) | |
def daytime(): | |
pir.when_motion = None | |
pir.when_no_motion = None | |
light.off() | |
def nighttime(): |
...putting this here so i don't loose them. | |
https://techcommunity.microsoft.com/t5/Windows-10-security/Hardening-Windows-10-on-an-IT-Pro-s-laptop/td-p/180502 | |
04-13-2018 04:13 PM - edited 04-16-2018 10:59 AM | |
a clean install of Windows 10 is pretty good, that said, I do have the following advice: | |
It is important to properly configure User Account Control on all machines; out of the box it is very insecure meaning anything can bypass it to grab admin privileges. | |
It is important to make sure that Secure Boot is enabled on all machines. |
taken from TinkerSec's answer on https://www.peerlyst.com/posts/pentestez-iso-creating-a-new-pentest-instance-christopher-gebhardt?trk=profile_page_overview_panel_posts#comment-65ugaE4YQaQeQXbbc
OpenVAS - http://www.openvas.org/ Vulnerability Scanner. Easy to use. Web App Based. Point and Run. Great for high level vulnerability scan. Shows common "bad things" that could be exploited by malicious hackers. Good for Asset awareness (We don't have an Apache server in our environment?! Where did that come from?) Zenmap - https://nmap.org/zenmap/ Host and Service Scanner. Good for Asset and Service Awareness.
I hereby claim:
To claim this, I am signing this object:
# https://www.git-tower.com/learn/git/faq/change-author-name-email | |
$ git config --global user.name "John Doe" | |
$ git config --global user.email "[email protected]" | |
or --local to set per repo | |
# https://help.github.com/en/articles/setting-your-commit-email-address | |
<username>@users.noreply.github.com |