Skip to content

Instantly share code, notes, and snippets.

View Php laravel 5.5 project .htaccess file
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
@201411108
201411108 / fix_exfat_drive.md
Created Apr 28, 2020 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX
View fix_exfat_drive.md

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
View Chap5Q7.py
f1 = open('LOWER.txt', 'w')
f2 = open('UPPER.txt', 'w')
f3 = open('OTHERS.txt', 'w')
c = True
while c:
c = input('Enter a character to write or exit to terminate the program : ')
if c=='exit':
break
elif c.islower(): # checks for lower character
@boneyt92
boneyt92 / generatepfx
Created Apr 28, 2020
Generate PFX from SSL certificate and key
View generatepfx
openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt
View jscheckpassword.js
function postNewPassword() {
var postPasswordUrl = endpoint("api-change-password");
var password = $("#password-value").val();
$("#edit-password").attr('disabled');
var errorMsg = '';
//validate password length
if (password.length < 7) {
var errorMsg = 'asd';
@choco-bot
choco-bot / FilesSnapshot.xml
Created Apr 28, 2020
netch v1.4.3 - Passed - Package Tests Results
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\netch\netch.nupkg" checksum="F4126135D3466D5A359080A5B6C3B186" />
<file path="C:\ProgramData\chocolatey\lib\netch\netch.nuspec" checksum="9A17F7E4F9174AFD13A3DFE64B441EB4" />
<file path="C:\ProgramData\chocolatey\lib\netch\netchInstall.zip.txt" checksum="AA214D64BBD1CF372614AAA40D1AB913" />
<file path="C:\ProgramData\chocolatey\lib\netch\tools\chocolateybeforemodify.ps1" checksum="A99BA00E03D57BF8AD4068A3E4653579" />
<file path="C:\ProgramData\chocolatey\lib\netch\tools\chocolateyinstall.ps1" checksum="ED8DB64E230D17C418CDFC7B9E0AD7B7" />
<file path="C:\ProgramData\chocolatey\lib\netch\tools\chocolateyuninstall.ps1" checksum="928013294AE2C332DB5BD2478D542F58" />
<file path="C:\ProgramData\chocolatey\lib\netch\tools\LICENSE.txt" checksum="5C7024B086D72F55F55C86A43AD94216" />
View PY0101EN-3-1-Conditions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Musflue_Ruessiflue_220420.gpx
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<gpx version="1.1" creator="Movescount - http://www.movescount.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.cluetrust.com/XML/GPXDATA/1/0 http://www.cluetrust.com/Schemas/gpxdata10.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd" xmlns:gpxdata="http://www.cluetrust.com/XML/GPXDATA/1/0" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns="http://www.topografix.com/GPX/1/1">
<trk>
<name>Move</name>
<trkseg>
<trkpt lat="46.946941" lon="8.242788">
<ele>827</ele>
<time>2020-04-22T14:15:08.000Z</time>
<extensions>
@manubalasree
manubalasree / Contributing.md
Created Apr 28, 2020 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github
View Contributing.md

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@cowboy-bebug
cowboy-bebug / fork_subdirectory.sh
Created Apr 28, 2020
Fork a subdirectory of an upstream repo
View fork_subdirectory.sh
# clone an upstream repo
git clone https://github.com/<user>/<project>.git && cd project
git branch -m upstream-master
git subtree split --prefix=<folder>/<subfolder> -b upstream-rebase
git checkout upstream-rebase
git remote rename origin upstream
git remote add origin https://github.com/<my-account>/<my-project>.git
git fetch origin
git push -u origin upstream-rebase
You can’t perform that action at this time.