pipeline {
agent { label "linux" }
stages {
stage('Hello') {
steps {
sh '''
aws --version
'''
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 | |
# Function to display usage information | |
usage() { | |
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
exit 1 | |
} | |
# Check if at least one argument (input file) is provided | |
if [ $# -lt 1 ]; then |
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
getStringValuesSF() async { | |
SharedPreferences prefs = await SharedPreferences.getInstance(); | |
//Return String | |
String stringValue = prefs.getString('stringValue'); | |
return stringValue; | |
} | |
getBoolValuesSF() async { | |
SharedPreferences prefs = await SharedPreferences.getInstance(); | |
//Return bool | |
bool boolValue = prefs.getBool('boolValue'); |
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
import "package:flutter/widgets.dart"; | |
import "dart:math"; | |
class SnappingListView extends StatefulWidget { | |
final Axis scrollDirection; | |
final ScrollController controller; | |
final IndexedWidgetBuilder itemBuilder; | |
final List<Widget> children; | |
final int itemCount; |
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
low | high | mid | while(?) | |
---|---|---|---|---|
mid + 1 | mid - 1 | low + ((high - low) / 2) | low <= high | |
mid + 1 | mid | low + ((high - low) / 2) | low < high | |
mid | mid - 1 | low + ((high - low + 1) / 2) | low < high | |
mid | mid | X (infinite loop) | X (invalid) |
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
# BetterTouchTool reset trial time | |
# ** All preference will reset | |
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist" | |
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist | |
echo "Done" | |
echo "remove ~/Library/Application\ Support/BetterTouchTool/" | |
rm -rf ~/Library/Application\ Support/BetterTouchTool/ | |
echo "Done" |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
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
# Useful references: | |
# | |
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line | |
# https://ss64.com/vb/sendkeys.html | |
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell | |
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/ | |
# | |
# Future enhancements - use events rather than an infinite loop | |
$wsh = New-Object -ComObject WScript.Shell | |
while (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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
NewerOlder